Ignore:
Timestamp:
Jan 19, 2012, 11:10:35 PM (13 years ago)
Author:
achernya
Message:
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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/common/oursrc/whoisd/scripts-whoisd.service

    r2066 r2114  
    11[Unit]
    22Description=Scripts whois Service
    3 After=syslog.target
     3After=syslog.target dirsrv.service
    44
    55[Service]
    66Type=simple
    7 ExecStart=/usr/bin/twistd --nodaemon -l /var/log/scripts-whoisd.log -y /usr/local/libexec/whoisd.tac
     7ExecStart=/usr/bin/twistd --nodaemon -l /var/log/scripts-whoisd.log --pidfile /var/run/whoisd.pid -y /usr/local/libexec/whoisd.tac
    88
    99[Install]
Note: See TracChangeset for help on using the changeset viewer.