From 19b0577d78e294877def287e5ea433ff4f7c6c34 Mon Sep 17 00:00:00 2001 From: Kyle K Date: Tue, 22 Jun 2021 13:28:41 -0500 Subject: ROG Ubuntu, more backups --- rog/etc/systemd/system/local.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 rog/etc/systemd/system/local.service (limited to 'rog/etc/systemd') 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 -- cgit v1.2.3