diff options
| -rw-r--r-- | [Unit] Description=Borg Backup Timer Requires=borgBackup.service [Timer] WakeSystem=false OnBootSec=3min OnCalendar=0/collectCovidPlaneData.timer | 12 | ||||
| -rw-r--r-- | collectCovidPlaneData.service | 10 |
2 files changed, 22 insertions, 0 deletions
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 |
