diff options
author | Michael Hanselmann <hansmi@gentoo.org> | 2007-11-12 21:47:33 +0000 |
---|---|---|
committer | Michael Hanselmann <hansmi@gentoo.org> | 2007-11-12 21:47:33 +0000 |
commit | be295739c64e855991ae4cd73034ed9ff447d39f (patch) | |
tree | 974f5af8dfc5e6cec236bb3769af569ac94fc693 /net-irc/inspircd/files/init.d_inspircd | |
parent | amd64 stable wrt #198845 and work around broken python wrt #187826 (diff) | |
download | gentoo-2-be295739c64e855991ae4cd73034ed9ff447d39f.tar.gz gentoo-2-be295739c64e855991ae4cd73034ed9ff447d39f.tar.bz2 gentoo-2-be295739c64e855991ae4cd73034ed9ff447d39f.zip |
Update init.d script from bug 194654. Bump version according to bug 198317.
(Portage version: 2.1.3.19)
Diffstat (limited to 'net-irc/inspircd/files/init.d_inspircd')
-rw-r--r-- | net-irc/inspircd/files/init.d_inspircd | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/net-irc/inspircd/files/init.d_inspircd b/net-irc/inspircd/files/init.d_inspircd index e7c022d921b8..6a1844a8125a 100644 --- a/net-irc/inspircd/files/init.d_inspircd +++ b/net-irc/inspircd/files/init.d_inspircd @@ -1,31 +1,37 @@ #!/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 $ +# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/files/init.d_inspircd,v 1.4 2007/11/12 21:47:33 hansmi Exp $ -opts="${opts} rehash" +opts="${opts} rehash version" depend() { need net - provide ircd + provide ircd } start() { ebegin "Starting InspIRCd" start-stop-daemon --start --quiet --chuid inspircd \ - --exec /usr/bin/inspircd -- \ - --logfile /var/log/inspircd/ircd.log &>/dev/null + --exec /usr/bin/inspircd -- \ + --logfile /var/log/inspircd/ircd.log &> /dev/null eend $? } 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 $(</var/run/inspircd/ircd.pid) + /usr/lib/inspircd/inspircd.launcher/inspircd rehash &> /dev/null + eend $? +} + +version() { + ebegin "Retrieve InspIRCd version" + /usr/lib/inspircd/inspircd.launcher/inspircd version eend $? } |