[systemd-devel] systemd kills user's scopes/sessions before shutdown service

Kamal Rathi kr30april at gmail.com
Tue Dec 31 05:34:04 UTC 2019


Hi Git-Hub Mailing List,

I am designing a stop service which has to be run before the kill of user's
scope / session .
As the reboot or shutdown are being initiated the systemd kill all the
users which are in user's.slice
before the script ran so the script is of no use if the user session are
killed first then the stop.service
stop.service

[Unit]
Description=Service to auto stop the EBS application
DefaultDependencies=no
Before=shutdown.target
RefuseManualStart=true

[Service]
Type=oneshot
ExecStart=/startdb/stop/stop.sh

[Install]
WantedBy=shutdown.target reboot.target


https://github.com/systemd/systemd/issues/14318

Regards,

Arjun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20191231/21cf4729/attachment.htm>


More information about the systemd-devel mailing list