From: Stefan Huber Date: Thu, 11 Jun 2020 18:45:51 +0000 (+0200) Subject: Add systemd unit and timer files X-Git-Tag: v1.3~6 X-Git-Url: https://git.sthu.org/?p=smailq.git;a=commitdiff_plain;h=b4201299e531a77be5a7b81781ecab70e620fa6f Add systemd unit and timer files --- diff --git a/smailq.service b/smailq.service new file mode 100644 index 0000000..05961d9 --- /dev/null +++ b/smailq.service @@ -0,0 +1,8 @@ +[Unit] +Description=smailq delivery service +Wants=network-online.target +After=network-online.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/smailq --deliver-all diff --git a/smailq.timer b/smailq.timer new file mode 100644 index 0000000..95a3782 --- /dev/null +++ b/smailq.timer @@ -0,0 +1,10 @@ +[Unit] +Description=smailq delivery timer + +[Timer] +OnBootSec=2m +OnUnitActiveSec=15m +Unit=smailq.service + +[Install] +WantedBy=timers.target