summaryrefslogtreecommitdiffstats
path: root/rog/etc/systemd/system/local.service
diff options
context:
space:
mode:
Diffstat (limited to 'rog/etc/systemd/system/local.service')
-rw-r--r--rog/etc/systemd/system/local.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/rog/etc/systemd/system/local.service b/rog/etc/systemd/system/local.service
new file mode 100644
index 0000000..204c9d0
--- /dev/null
+++ b/rog/etc/systemd/system/local.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Run local commands after boot
+ConditionFileIsExecutable=/usr/local/bin/local.sh
+After=multi-user.target
+
+[Service]
+Type=oneshot
+# below is needed otherwise ExecStop would execute right after start and unmount
+RemainAfterExit=Yes
+ExecStart=/usr/local/bin/local.sh
+ExecStop=/usr/local/bin/local-cleanup.sh
+
+[Install]
+WantedBy=multi-user.target