index
:
systemd-ready-for-shutdown
master
Systemd units to shutdown server once scheduled tasks are done
Aki
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
shutdown-if-no-sessions
blob: 285eb7031e00c8c9955016a186b28c1edc67cc15 (
plain
)
1
2
3
4
#!/bin/sh if ! who | grep -e tty -e pts; then systemctl poweroff fi