[Starlingx-discuss] [stx-ha] How to stop a service in stx?

Qian, Bin Bin.Qian at windriver.com
Fri May 24 13:57:19 UTC 2019


Kunpeng,

sm-unmanage is a util for troubleshooting. By unmanage a service, the service will be on it's own. i.e, if it fails, it will stop and won't restart. Also sm-unmanage tells SM not to attempt to monitor the service. Sm will always show the service in good working condition. once you run sm-unmanage service <service>, you can mange the service yourself. SM will regain control to the service after reboot or you run "sm-manage service <service>".

I am sure you are troubleshooting on your own dev lab. I'd make it clear the sm-unmanage should not be used in any production labs, as it could result silent service outage. 

Regards,

Bin


________________________________________
From: Bailey, Henry Albert (Al) [Al.Bailey at windriver.com]
Sent: Friday, May 24, 2019 6:34 AM
To: Bailey, Henry Albert (Al); 张鲲鹏; starlingx-discuss at lists.starlingx.io
Subject: Re: [Starlingx-discuss] [stx-ha] How to stop a service in stx?

I should probably also warn you that you almost never ever want to so this.
 It will very likely break your ability to swact, will probably have negative consequences for applying system parameters, and I have no clue how a reboot will behave.
You should likely only do this if you are temporarily experimenting with something related to the service you are attempting to stop.

Al

-----Original Message-----
From: Bailey, Henry Albert (Al) [mailto:Al.Bailey at windriver.com]
Sent: Friday, May 24, 2019 9:27 AM
To: 张鲲鹏; starlingx-discuss at lists.starlingx.io
Subject: Re: [Starlingx-discuss] [stx-ha] How to stop a service in stx?

I think you want:

  sm-unmanage service  <name of the service>

You can use  sm-unmanage --help    to see some info about the args supported.

Al

-----Original Message-----
From: 张鲲鹏 [mailto:zhang.kunpeng at 99cloud.net]
Sent: Friday, May 24, 2019 2:14 AM
To: starlingx-discuss at lists.starlingx.io
Subject: [Starlingx-discuss] [stx-ha] How to stop a service in stx?

Hi folks,

I want to stop a service in starlingx, but it's always restarted by sm.
How does sm not manage a service?

Thanks
Kunpeng

_______________________________________________
Starlingx-discuss mailing list
Starlingx-discuss at lists.starlingx.io
http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
_______________________________________________
Starlingx-discuss mailing list
Starlingx-discuss at lists.starlingx.io
http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
_______________________________________________
Starlingx-discuss mailing list
Starlingx-discuss at lists.starlingx.io
http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss


More information about the Starlingx-discuss mailing list