2016-12-21 05:08:45 +04:00
|
|
|
[Unit]
|
|
|
|
Description=Shutdown all ssh sessions before network
|
|
|
|
DefaultDependencies=no
|
|
|
|
Before=network.target shutdown.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2016-12-21 06:00:13 +04:00
|
|
|
ExecStart=/bin/sh -c "/usr/bin/killall sshd; sleep 2; :"
|
2016-12-21 05:08:45 +04:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=poweroff.target halt.target reboot.target
|