nutools/lib/init.d/kill-ssh-user-sessions.service

12 lines
264 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Shutdown all ssh sessions before network
DefaultDependencies=no
Before=network.target shutdown.target
[Service]
Type=oneshot
ExecStart=/bin/sh -c "/usr/bin/killall sshd; sleep 2; :"
[Install]
WantedBy=poweroff.target halt.target reboot.target