summaryrefslogtreecommitdiff
path: root/systemd/radar.service
blob: 6995637cfc35ac65f93b7fec63e0e32a0fac910b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Unit]
Description=Fetch BOM radar and publish loop APNG
OnFailure=radar-retry.timer

[Service]
Type=oneshot
User=st33v
WorkingDirectory=/var/lib/radar
# `-` prefix: one radar's failure does not skip the next
ExecStart=-/opt/radar/radarFetch.sh IDR713
ExecStart=-/opt/radar/radarFetch.sh IDR663
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