--- files/twistd.init.orig 2009-03-25 00:18:23.073054642 +0200 +++ files/twistd.init 2009-03-25 00:19:49.225059925 +0200 @@ -7,18 +7,18 @@ start() { if [[ -z "${TWISTD_OPTS}" ]]; then eerror "TWISTD_OPTS is not set!" - eerror "You need to configure twistd in /etc/conf.d/twistd." + eerror "You need to configure twistd in /etc/conf.d/${SVCNAME}." return 1 fi - ebegin "Starting twistd" - start-stop-daemon --start --quiet --pidfile /var/run/twistd.pid \ - --exec /usr/bin/twistd -- --pidfile /var/run/twistd.pid \ + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --quiet --pidfile /var/run/${SVCNAME}.pid \ + --exec /usr/bin/twistd -- --pidfile /var/run/${SVCNAME}.pid \ ${TWISTD_OPTS} eend $? "Failed to start twistd" } stop() { - ebegin "Stopping twistd" - start-stop-daemon --stop --quiet --pidfile /var/run/twistd.pid + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet --pidfile /var/run/${SVCNAME}.pid eend $? "Failed to stop twistd" }