--- /usr/portage/net-irc/inspircd/files/init.d_inspircd 2007-07-11 09:37:33.000000000 +0100 +++ files/init.d_inspircd 2007-10-04 23:32:27.000000000 +0100 @@ -3,29 +3,24 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/files/init.d_inspircd,v 1.3 2007/07/11 08:10:47 hansmi Exp $ -opts="${opts} rehash" - depend() { - need net + need net provide ircd } start() { - ebegin "Starting InspIRCd" - start-stop-daemon --start --quiet --chuid inspircd \ - --exec /usr/bin/inspircd -- \ + ebegin "Starting InspIRCd" + start-stop-daemon --start --quiet --chuid inspircd \ + --exec /usr/bin/inspircd \ + --pidfile /var/run/inspircd.pid --make-pidfile -- \ --logfile /var/log/inspircd/ircd.log &>/dev/null - eend $? + sleep 1 + echo `pidof inspircd` > /var/run/inspircd.pid + eend $? } stop() { - ebegin "Stopping InspIRCd" - start-stop-daemon --stop --quiet --pidfile /var/run/inspircd/ircd.pid - eend $? -} - -rehash() { - ebegin "Rehashing InspIRCd" - kill -s SIGHUP $(