diff options
Diffstat (limited to 'rog/etc/systemd/system')
-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 |