summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-irc/irker/files/irker.init')
-rw-r--r--net-irc/irker/files/irker.init25
1 files changed, 25 insertions, 0 deletions
diff --git a/net-irc/irker/files/irker.init b/net-irc/irker/files/irker.init
new file mode 100644
index 000000000000..367d548205e0
--- /dev/null
+++ b/net-irc/irker/files/irker.init
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+command="/usr/bin/irkerd"
+command_args="${IRKERD_OPTS}"
+pidfile="/var/run/${SVCNAME}.pid"
+
+depend() {
+ use net
+}
+
+start () {
+ ebegin "Starting irkerd"
+ start-stop-daemon --start --quiet --exec $command
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping irkerd"
+ start-stop-daemon --stop --quiet --exec $command
+ eend $?
+}
+