summaryrefslogtreecommitdiffstats
path: root/rog/etc/systemd/system
diff options
context:
space:
mode:
authorKyle K <kylek389@gmail.com>2021-06-22 13:28:41 -0500
committerKyle K <kylek389@gmail.com>2021-06-22 13:28:41 -0500
commit19b0577d78e294877def287e5ea433ff4f7c6c34 (patch)
treee2002cffead0faa0b855e44438888765170f8dc9 /rog/etc/systemd/system
parent510001b233a3d32872fa0934468302323085ebff (diff)
downloadconfigs-19b0577d78e294877def287e5ea433ff4f7c6c34.tar.gz
configs-19b0577d78e294877def287e5ea433ff4f7c6c34.tar.bz2
configs-19b0577d78e294877def287e5ea433ff4f7c6c34.zip
ROG Ubuntu, more backups
Diffstat (limited to 'rog/etc/systemd/system')
-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