diff options
Diffstat (limited to 'net-im/jabber-pymsn/files/jabber-pymsn-transport.in')
-rw-r--r-- | net-im/jabber-pymsn/files/jabber-pymsn-transport.in | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net-im/jabber-pymsn/files/jabber-pymsn-transport.in b/net-im/jabber-pymsn/files/jabber-pymsn-transport.in new file mode 100644 index 000000000000..622be158185d --- /dev/null +++ b/net-im/jabber-pymsn/files/jabber-pymsn-transport.in @@ -0,0 +1,31 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: jabber_pymsn +# REQUIRE: DAEMON %%JABBER_REQUIRE%% +# KEYWORD: shutdown +# +# Define these jabber_pymsn_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# + +. /etc/rc.subr + +name="jabber_pymsn" +rcvar=jabber_pymsn_enable + +load_rc_config $name + +: ${jabber_pymsn_enable="NO"} +: ${jabber_pymsn_dir="%%PREFIX%%/lib/jabber/pymsn"} +: ${jabber_pymsn_piddir="%%JABBER_PIDDIR%%"} +: ${jabber_pymsn_user="%%JABBER_USER%%"} + +pidfile="${jabber_pymsn_piddir}/PyMSNt.pid" +command_interpreter="%%PYTHON_CMD%%" +command_args="-p ${pidfile}" +command="${jabber_pymsn_dir}/PyMSNt.py" + +run_rc_command "$1" |