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/inspircd/files | |
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/inspircd/files')
-rw-r--r-- | net-irc/inspircd/files/init.d_inspircd | 28 |
1 files changed, 28 insertions, 0 deletions
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 $? +} |