diff options
| author | St33v <github@f3rr3t.com> | 2020-03-01 17:52:26 +1100 |
|---|---|---|
| committer | St33v <github@f3rr3t.com> | 2020-03-01 17:52:26 +1100 |
| commit | 24ffb7078cd35c3c8ee615581096c693adb06904 (patch) | |
| tree | 534e843e7bbc5db093f8f82913e624206b66caba | |
| parent | 572af48b45a4e4317d70ba4e2b3b274d480ba26e (diff) | |
Systemd timer and service
| -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 |
