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