X-Git-Url: http://rtime.felk.cvut.cz/gitweb/novaboot.git/blobdiff_plain/3ef4c3fd66b5ae0273f187a2598bcbacf52e79e5..916ad955da772d39df5c565f5299a034b04b0e32:/server/systemd/novaboot-power diff --git a/server/systemd/novaboot-power b/server/systemd/novaboot-power index 8b1663e..ede6e7b 100755 --- a/server/systemd/novaboot-power +++ b/server/systemd/novaboot-power @@ -7,9 +7,12 @@ fi case "$1" in on) - exec systemctl start "novaboot-power@${SUDO_USER}.service";; + systemctl stop "novaboot-power-off@${SUDO_USER}.timer" + systemctl start "novaboot-power@${SUDO_USER}.service" + ;; off) - exec systemctl stop "novaboot-power@${SUDO_USER}.service";; + systemctl stop "novaboot-power@${SUDO_USER}.service" + ;; delayed-off) systemctl start "novaboot-power-off@${SUDO_USER}.timer" # || systemd-run --on-active="$2" --unit="novaboot-power-off@${SUDO_USER}.target"