]> rtime.felk.cvut.cz Git - novaboot.git/blobdiff - contrib/systemd/novaboot-target-on@.service
Add systemd units to power-on/off the target
[novaboot.git] / contrib / systemd / novaboot-target-on@.service
diff --git a/contrib/systemd/novaboot-target-on@.service b/contrib/systemd/novaboot-target-on@.service
new file mode 100644 (file)
index 0000000..82aa0e5
--- /dev/null
@@ -0,0 +1,13 @@
+[Unit]
+StopWhenUnneeded=true
+
+[Service]
+Type=oneshot
+RemainAfterExit=true
+ExecStart=/bin/systemctl stop novaboot-target-off@%i.timer
+#ExecStart=/bin/su -c "/home/%i/novaboot-shell on" %i
+ExecStop=/bin/systemctl start novaboot-target-off@%i.timer
+
+[Install]
+# After 'systemctl enable', change the number below to the uid of user %i
+RequiredBy=user@1000.service