[systemd-devel] safe and fast shutdown/reboot
prashantkumar dhotre
prashantkumardhotre at gmail.com
Fri Mar 16 03:43:01 UTC 2018
Hi
I see that default reboot/systemctl reboot command issues SIGTERM to my
apps and hence it is doing graceful stop of apps and this may take some
time and hence shutdown time may be little longer.
I am looking for safe and fastest shutdown/reboot method.
a) It is OK if my apps are stopped ungracefully during shutdown .(app
should not start automatically again after they are killed/stopped during
shutdown)
b) file system and such system level stuff needs to be cleanly shut down
1) From my research, I see that 'systemctl reboot --force' is the one I can
use.
I understand that this command sends SIGKILL to my apps.
So this satisfies both (a) and (b) and hence this command should be used to
reboot faster.
Could you please confirm ?
If this is not right method, please comment on which method to use.
2) Also is there a way to limit SIGKILL to only my apps when I do ' 'systemctl
reboot --force'
so that rest of the system level services still get stopped gracefully
3) If 'systemctl reboot --force' is correct command to use in my case,
then during shutdown , will my apps get restarted
due to 'Restart'/'StartLimitBurst'/'StartLimitInterval' settings in service
file ? I dont want my apps to get restarted if they are stopped/killed
during system shutdown
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180316/918ee24e/attachment.html>
More information about the systemd-devel
mailing list