summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hanselmann <hansmi@gentoo.org>2006-07-15 01:39:59 +0000
committerMichael Hanselmann <hansmi@gentoo.org>2006-07-15 01:39:59 +0000
commitdfa21af598039b6f7b048717b9fa3090d77f78a0 (patch)
tree564aaa1029de8f5bf86e8cd0deb702ee296684a9 /net-irc/inspircd/files
parentarm/ia64 love (diff)
downloadhistorical-dfa21af598039b6f7b048717b9fa3090d77f78a0.tar.gz
historical-dfa21af598039b6f7b048717b9fa3090d77f78a0.tar.bz2
historical-dfa21af598039b6f7b048717b9fa3090d77f78a0.zip
Forgot init.d script.
Package-Manager: portage-2.1.1_pre2-r8
Diffstat (limited to 'net-irc/inspircd/files')
-rw-r--r--net-irc/inspircd/files/init.d_inspircd28
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 $?
+}