diff options
author | Kyle K <kylek389@gmail.com> | 2021-06-22 13:28:41 -0500 |
---|---|---|
committer | Kyle K <kylek389@gmail.com> | 2021-06-22 13:28:41 -0500 |
commit | 19b0577d78e294877def287e5ea433ff4f7c6c34 (patch) | |
tree | e2002cffead0faa0b855e44438888765170f8dc9 /rog/etc/systemd | |
parent | 510001b233a3d32872fa0934468302323085ebff (diff) | |
download | configs-19b0577d78e294877def287e5ea433ff4f7c6c34.tar.gz configs-19b0577d78e294877def287e5ea433ff4f7c6c34.tar.bz2 configs-19b0577d78e294877def287e5ea433ff4f7c6c34.zip |
ROG Ubuntu, more backups
Diffstat (limited to 'rog/etc/systemd')
-rw-r--r-- | rog/etc/systemd/system/local.service | 14 |
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 |