diff options
author | Michael Hanselmann <hansmi@gentoo.org> | 2006-07-15 01:39:59 +0000 |
---|---|---|
committer | Michael Hanselmann <hansmi@gentoo.org> | 2006-07-15 01:39:59 +0000 |
commit | fd0ac0ab02f97e11ac0bc4bba56a1c0437a5c248 (patch) | |
tree | 089106948fcc14ba6db2ff6657f2e33070ecbae4 /net-irc | |
parent | arm/ia64 love (diff) | |
download | gentoo-2-fd0ac0ab02f97e11ac0bc4bba56a1c0437a5c248.tar.gz gentoo-2-fd0ac0ab02f97e11ac0bc4bba56a1c0437a5c248.tar.bz2 gentoo-2-fd0ac0ab02f97e11ac0bc4bba56a1c0437a5c248.zip |
Forgot init.d script.
(Portage version: 2.1.1_pre2-r8)
Diffstat (limited to 'net-irc')
-rw-r--r-- | net-irc/inspircd/ChangeLog | 6 | ||||
-rw-r--r-- | net-irc/inspircd/files/init.d_inspircd | 28 |
2 files changed, 33 insertions, 1 deletions
diff --git a/net-irc/inspircd/ChangeLog b/net-irc/inspircd/ChangeLog index 6a4d10e036fc..a6cc2791f35e 100644 --- a/net-irc/inspircd/ChangeLog +++ b/net-irc/inspircd/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for mail-mta/netqmail # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/ChangeLog,v 1.1 2006/07/14 21:53:01 hansmi Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/ChangeLog,v 1.2 2006/07/15 01:39:59 hansmi Exp $ + + 15 Jul 2006; Michael Hanselmann <hansmi@gentoo.org> + +files/init.d_inspircd: + Forgot init.d script. *inspircd-1.0.5 (14 Jul 2006) diff --git a/net-irc/inspircd/files/init.d_inspircd b/net-irc/inspircd/files/init.d_inspircd new file mode 100644 index 000000000000..b8e7280a9cc1 --- /dev/null +++ b/net-irc/inspircd/files/init.d_inspircd @@ -0,0 +1,28 @@ +#!/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.1 2006/07/15 01:39:59 hansmi Exp $ + +opts="${opts} rehash" + +depend() { + need net +} + +start() { + ebegin "Starting InspIRCd" + start-stop-daemon --start --quiet --chuid inspircd --exec /usr/bin/inspircd &> /dev/null + eend $? +} + +stop() { + ebegin "Stopping InspIRCd" + start-stop-daemon --stop --quiet --pidfile /var/run/inspircd/ircd.pid + eend $? +} + +rehash() { + ebegin "Rehashing InspIRCd" + kill -s SIGHUP $(</var/run/inspircd/ircd.pid) + eend $? +} |