From 24ffb7078cd35c3c8ee615581096c693adb06904 Mon Sep 17 00:00:00 2001 From: St33v Date: Sun, 1 Mar 2020 17:52:26 +1100 Subject: Systemd timer and service --- .../collectCovidPlaneData.timer | 12 ++++++++++++ collectCovidPlaneData.service | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100644 [Unit] Description=Borg Backup Timer Requires=borgBackup.service [Timer] WakeSystem=false OnBootSec=3min OnCalendar=0/collectCovidPlaneData.timer create mode 100644 collectCovidPlaneData.service diff --git a/[Unit] Description=Borg Backup Timer Requires=borgBackup.service [Timer] WakeSystem=false OnBootSec=3min OnCalendar=0/collectCovidPlaneData.timer b/[Unit] Description=Borg Backup Timer Requires=borgBackup.service [Timer] WakeSystem=false OnBootSec=3min OnCalendar=0/collectCovidPlaneData.timer new file mode 100644 index 0000000..c4caec0 --- /dev/null +++ b/[Unit] Description=Borg Backup Timer Requires=borgBackup.service [Timer] WakeSystem=false OnBootSec=3min OnCalendar=0/collectCovidPlaneData.timer @@ -0,0 +1,12 @@ +[Unit] +Description=Timer to collect aeroplane flight info +Requires=collectCovidPlaneData.service + +[Timer] +WakeSystem=false +OnBootSec=3min +OnCalendar=0/1:00:00 +RandomizedDelaySec=3min + +[Install] +WantedBy=timers.target \ No newline at end of file diff --git a/collectCovidPlaneData.service b/collectCovidPlaneData.service new file mode 100644 index 0000000..94e5322 --- /dev/null +++ b/collectCovidPlaneData.service @@ -0,0 +1,10 @@ +[Unit] +Description=Collect airline flight state data + +[Service] +Type=simple +IOSchedulingClass=2 +IOSchedulingPriority=7 +ExecStart=-/etc/systemd/system/covidPlanes.sh +User=st33v +Group=st33v \ No newline at end of file -- cgit v1.3