<div dir="ltr">Hi Git-Hub Mailing List,<div><p>I am designing a stop service which has to be run before the kill of user's scope / session .<br>As the reboot or shutdown are being initiated the systemd kill all the users which are in user's.slice<br>before the script ran so the script is of no use if the user session are killed first then the stop.service<br>stop.service</p><p>[Unit]<br>Description=Service to auto stop the EBS application<br>DefaultDependencies=no<br>Before=shutdown.target<br>RefuseManualStart=true</p><p>[Service]<br>Type=oneshot<br>ExecStart=/startdb/stop/stop.sh</p><p>[Install]<br>WantedBy=shutdown.target reboot.target</p><p><br></p><p><a href="https://github.com/systemd/systemd/issues/14318" target="_blank">https://github.com/systemd/systemd/issues/14318</a><br></p><p>Regards,</p><p>Arjun</p></div></div>