3764e9109a
PR: 139385 Approved by: maintainer
32 lines
645 B
Bash
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"
|