summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-irc/ircservices/files/ircservices.init.d')
-rw-r--r--net-irc/ircservices/files/ircservices.init.d25
1 files changed, 25 insertions, 0 deletions
diff --git a/net-irc/ircservices/files/ircservices.init.d b/net-irc/ircservices/files/ircservices.init.d
new file mode 100644
index 000000000000..5e19f2a7f27f
--- /dev/null
+++ b/net-irc/ircservices/files/ircservices.init.d
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-irc/ircservices/files/ircservices.init.d,v 1.1 2004/08/14 21:38:26 swegener Exp $
+
+depend() {
+ need net
+ use ircd
+}
+
+start() {
+ ebegin "Starting IRC Services"
+ /usr/bin/ircservices \
+ -dir=/var/lib/ircservices \
+ -log=/var/log/ircservices/ircservices.log \
+ &>/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping IRC Services"
+ kill <$(/var/lib/ircservices/ircservices.pid)
+ eend $?
+ rm -f /var/lib/ircservices/ircservices.pid
+}