summaryrefslogtreecommitdiff
path: root/systemd/radar.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/radar.service')
-rw-r--r--systemd/radar.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/systemd/radar.service b/systemd/radar.service
new file mode 100644
index 0000000..8e9dd40
--- /dev/null
+++ b/systemd/radar.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Fetch BOM radar and publish loop APNG
+OnFailure=radar-retry.timer
+
+[Service]
+Type=oneshot
+User=st33v
+WorkingDirectory=/var/lib/radar
+ExecStart=/opt/radar/radarFetch.sh
+ExecStopPost=/bin/sh -c 'STATUS=SUCCESS; [ "$$EXIT_STATUS" != "0" ] && STATUS=FAILURE; logger -t radar -p user.err "radar $$STATUS exit=$$EXIT_STATUS"'
+SyslogIdentifier=radar
+StandardOutput=journal
+StandardError=journal