blob: 43734f1c18154025bfa2697659bc8a9fb021253a [file] [log] [blame]
Andy Bavier1e2c2322013-10-28 15:17:35 -04001[Unit]
Scott Bakerdc74f7d2015-02-04 15:04:26 -08002Description=XOS Observer
Andy Bavier1e2c2322013-10-28 15:17:35 -04003After=syslog.target network.target
4
5[Service]
6Type=forking
7User=root
Scott Bakerdc74f7d2015-02-04 15:04:26 -08008PIDFile=/var/run/xos-observer.pid
9ExecStart=/usr/sbin/daemonize -c /opt/xos -p /var/run/xos-observer.pid /opt/xos/xos-observer.py
10ExecStop=kill $(cat /var/run/xos-observer.pid)
Andy Bavier1e2c2322013-10-28 15:17:35 -040011
12[Install]
13WantedBy=multi-user.target
14