source: trunk/server/common/oursrc/whoisd/scripts-whoisd.service @ 2581

Last change on this file since 2581 was 2114, checked in by achernya, 12 years ago
Make whoisd (hopefully) more reliable whoisd was systemd-ified for F15, replacing the cron-based @reboot startup. Unfortunately, this made whoisd prone to failing to start, as the dependencies were not correctly stated. This adds dirsrv as a dependency, as it was implicitly in the cron-based system. Additionally, prevent twistd from making a /twistd.pid by specifying the path that was used from the cron-start era. The --pidfile was removed as it was not needed by systemd, which uses cgroups to manage processes. Unfortunately, twistd insists on pidfiles, so this prevents twistd from polluting /.
File size: 268 bytes
Line 
1[Unit]
2Description=Scripts whois Service
3After=syslog.target dirsrv.service
4
5[Service]
6Type=simple
7ExecStart=/usr/bin/twistd --nodaemon -l /var/log/scripts-whoisd.log --pidfile /var/run/whoisd.pid -y /usr/local/libexec/whoisd.tac
8
9[Install]
10WantedBy=multi-user.target
Note: See TracBrowser for help on using the repository browser.