]> rtime.felk.cvut.cz Git - novaboot.git/blobdiff - server/systemd/novaboot-power
Rename novaboot-power-off.service to novaboot-delayed-power-off.service
[novaboot.git] / server / systemd / novaboot-power
index 8b1663e1c232ba33bec022b86decfc00d781e701..ede6e7bc2fda28c9b2640627bbac9c73b882d28c 100755 (executable)
@@ -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"