summaryrefslogtreecommitdiff
path: root/systemd/synoptic.service
blob: 33e7237259c954c74cf7b1e08e818cbcacda426f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description=Download and render BOM synoptic chart
OnFailure=synoptic-retry.timer

[Service]
Type=oneshot
User=st33v
WorkingDirectory=/var/lib/synoptic
ExecStart=/opt/synoptic/synopticChart.sh
ExecStopPost=/bin/sh -c 'STATUS=SUCCESS; [ "$$EXIT_STATUS" != "0" ] && STATUS=FAILURE; logger -t synoptic -p user.err "synoptic $$STATUS exit=$$EXIT_STATUS"'
SyslogIdentifier=synoptic
StandardOutput=journal
StandardError=journal