Disable Weston Service and restart it after New Service Starts

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Disable Weston Service and restart it after New Service Starts

2,495 Views
kailas_kharse
Contributor IV

Hello,

I wanted to disable the "Weston Service" during the boot time and enable it after I have started my New Service.

How can I do it?

I have tried few experiments but did not get success.

1. Added below lines in wastes@.service under [UNIT] Section.

Before=my.service

Wants=My.service

 

Thanks & Regards,
Kailas K.

0 Kudos
1 Reply

2,482 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Kailas,

The following command stops the Weston service:

Board $> systemctl stop weston

The following command starts the Weston service:

Board $> systemctl start weston

The following command stops and then restarts the Weston service:

Board $> systemctl restart weston

 

For Preventing start automatically on boot:

The Weston service is automatically started on boot as specified in /weston.service.

The following command disables the automatic start of the Weston service:

Board $> systemctl disable weston

Note: The following command enables the automatic start of the Weston service:

Board $> systemctl enable weston

 

Regards