Andy Bavier | 1e2c232 | 2013-10-28 15:17:35 -0400 | [diff] [blame] | 1 | [Unit] |
Scott Baker | d232c2b | 2015-02-04 15:04:26 -0800 | [diff] [blame] | 2 | Description=XOS Observer |
Andy Bavier | 1e2c232 | 2013-10-28 15:17:35 -0400 | [diff] [blame] | 3 | After=syslog.target network.target |
| 4 | |
| 5 | [Service] |
| 6 | Type=forking |
| 7 | User=root |
Scott Baker | d232c2b | 2015-02-04 15:04:26 -0800 | [diff] [blame] | 8 | PIDFile=/var/run/xos-observer.pid |
| 9 | ExecStart=/usr/sbin/daemonize -c /opt/xos -p /var/run/xos-observer.pid /opt/xos/xos-observer.py |
| 10 | ExecStop=kill $(cat /var/run/xos-observer.pid) |
Andy Bavier | 1e2c232 | 2013-10-28 15:17:35 -0400 | [diff] [blame] | 11 | |
| 12 | [Install] |
| 13 | WantedBy=multi-user.target |
| 14 | |