--- init.d_inspircd 2007-10-06 15:11:00.000000000 +0200 +++ init.d_inspircd 2007-10-06 15:08:06.000000000 +0200 @@ -1,9 +1,9 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # 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" +opts="${opts} rehash version" depend() { need net @@ -20,12 +20,18 @@ stop() { ebegin "Stopping InspIRCd" - start-stop-daemon --stop --quiet --pidfile /var/run/inspircd/ircd.pid + start-stop-daemon --stop --quiet --exec /usr/bin/inspircd eend $? } rehash() { ebegin "Rehashing InspIRCd" - kill -s SIGHUP $( /dev/null + eend $? +} + +version() { + ebegin "Retrieve InspIRCd version" + /usr/lib/inspircd/inspircd.launcher/inspircd version eend $? }