config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

commit b36c69b88ba0c680bb56a9460183674a1dccdf2a
parent 36998ae2cb4bc5ed80f71ad1695b38ac6671235b
Author: dwrz <dwrz@dwrz.net>
Date:   Tue,  6 Dec 2022 20:10:37 +0000

Add systemd units

Diffstat:
Asystemd/system/ddns.service | 11+++++++++++
Asystemd/system/ddns.timer | 14++++++++++++++
Asystemd/user/backup.service | 11+++++++++++
Asystemd/user/backup.timer | 14++++++++++++++
Asystemd/user/reveille.service | 11+++++++++++
Asystemd/user/reveille.timer | 13+++++++++++++
Asystemd/user/sync-email.service | 11+++++++++++
Asystemd/user/sync-email.timer | 13+++++++++++++
Asystemd/user/uncommitted.service | 11+++++++++++
Asystemd/user/uncommitted.timer | 13+++++++++++++
10 files changed, 122 insertions(+), 0 deletions(-)

diff --git a/systemd/system/ddns.service b/systemd/system/ddns.service @@ -0,0 +1,11 @@ +[Unit] +Description=DDNS +RefuseManualStart=no +RefuseManualStop=yes + +[Service] +Type=oneshot +ExecStart=r53 %H + +[Install] +WantedBy=timers.target diff --git a/systemd/system/ddns.timer b/systemd/system/ddns.timer @@ -0,0 +1,14 @@ +[Unit] +Description=Update DDNS +RefuseManualStart=no +RefuseManualStop=no + +[Timer] +OnBootSec=1min +OnCalendar=*-*-* *:00:00 +Persistent=true +RandomizedDelaySec=1min +Unit=ddns.service + +[Install] +WantedBy=default.target diff --git a/systemd/user/backup.service b/systemd/user/backup.service @@ -0,0 +1,11 @@ +[Unit] +Description=Run backup +RefuseManualStart=no +RefuseManualStop=yes + +[Service] +Type=oneshot +ExecStart=/home/dwrz/.local/bin/backup + +[Install] +WantedBy=timers.target diff --git a/systemd/user/backup.timer b/systemd/user/backup.timer @@ -0,0 +1,14 @@ +[Unit] +Description=Run hourly backup +RefuseManualStart=no +RefuseManualStop=no + +[Timer] +OnBootSec=5min +OnCalendar=*-*-* *:00:00 +Persistent=true +RandomizedDelaySec=1min +Unit=backup.service + +[Install] +WantedBy=default.target diff --git a/systemd/user/reveille.service b/systemd/user/reveille.service @@ -0,0 +1,11 @@ +[Unit] +Description=Reveille +RefuseManualStart=no +RefuseManualStop=yes + +[Service] +Type=oneshot +ExecStart=/home/dwrz/.local/bin/reveille + +[Install] +WantedBy=timers.target diff --git a/systemd/user/reveille.timer b/systemd/user/reveille.timer @@ -0,0 +1,13 @@ +[Unit] +Description=Reveille +RefuseManualStart=no +RefuseManualStop=no + +[Timer] +OnCalendar=*-*-* 6:00:00 +Persistent=true +RandomizedDelaySec=1min +Unit=reveille.service + +[Install] +WantedBy=default.target diff --git a/systemd/user/sync-email.service b/systemd/user/sync-email.service @@ -0,0 +1,11 @@ +[Unit] +Description=Sync email +RefuseManualStart=no +RefuseManualStop=yes + +[Service] +Type=oneshot +ExecStart=/home/dwrz/.local/bin/sync-email + +[Install] +WantedBy=default.target diff --git a/systemd/user/sync-email.timer b/systemd/user/sync-email.timer @@ -0,0 +1,13 @@ +[Unit] +Description=Sync email every five minutes +RefuseManualStart=no +RefuseManualStop=no + +[Timer] +Persistent=false +OnBootSec=1min +OnUnitActiveSec=5min +Unit=sync-email.service + +[Install] +WantedBy=default.target diff --git a/systemd/user/uncommitted.service b/systemd/user/uncommitted.service @@ -0,0 +1,11 @@ +[Unit] +Description=Check for uncommitted changes +RefuseManualStart=no +RefuseManualStop=yes + +[Service] +Type=oneshot +ExecStart=/home/dwrz/.local/bin/uncommitted + +[Install] +WantedBy=timers.target diff --git a/systemd/user/uncommitted.timer b/systemd/user/uncommitted.timer @@ -0,0 +1,13 @@ +[Unit] +Description=Check for uncommitted changes +RefuseManualStart=no +RefuseManualStop=no + +[Timer] +Persistent=false +OnBootSec=5min +OnUnitActiveSec=15min +Unit=uncommitted.service + +[Install] +WantedBy=default.target