freebsd-ports/net-im/jabber-pyaim/files/jabber-pyaim-transport.sh.in
Alexander Nedotsukov 3764e9109a Fix circular dependency with jabberd startup script.
PR:		139385
Approved by:	maintainer
2009-10-13 15:59:59 +00:00

32 lines
645 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: jabber_pyaim
# REQUIRE: DAEMON %%JABBER_REQUIRE%%
# KEYWORD: shutdown
#
# Define these jabber_pyaim_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
#
. %%RC_SUBR%%
name="jabber_pyaim"
rcvar=`set_rcvar`
load_rc_config $name
: ${jabber_pyaim_enable="NO"}
: ${jabber_pyaim_dir="%%PREFIX%%/lib/jabber/pyaim"}
: ${jabber_pyaim_piddir="/var/jabberd/pid"}
: ${jabber_pyaim_user="%%JABBER_USER%%"}
pidfile="${jabber_pyaim_piddir}/PyAIMt.pid"
command_interpreter="%%PYTHON_CMD%%"
command_args="-b -o pid=${pidfile}"
command="${jabber_pyaim_dir}/PyAIMt.py"
run_rc_command "$1"