summaryrefslogtreecommitdiff
path: root/net-im/py-xmpppy-irc/files/xmpppyirc.in
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/py-xmpppy-irc/files/xmpppyirc.in')
-rw-r--r--net-im/py-xmpppy-irc/files/xmpppyirc.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-im/py-xmpppy-irc/files/xmpppyirc.in b/net-im/py-xmpppy-irc/files/xmpppyirc.in
new file mode 100644
index 000000000000..ca3df5e48bd8
--- /dev/null
+++ b/net-im/py-xmpppy-irc/files/xmpppyirc.in
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# PROVIDE: xmpppyirc
+# REQUIRE: DAEMON
+
+. %%RC_SUBR%%
+
+name="xmpppyirc"
+pidfile="/var/run/$name.pid"
+
+command="%%FEXEC%%"
+command_args="&"
+command_interpreter="%%PYTHON_CMD%%"
+required_files="%%PREFIX%%/etc/$name.conf"
+start_precmd="touch $pidfile && export PID=$pidfile"
+
+load_rc_config $name
+: ${xmpppyirc_enable="NO"}
+run_rc_command "$1"