daa3fc0c2f
- Fix startup script rcorder conflict with jabberd [2] - Bump PORTREVISION PR: ports/119619 [1] Submitted by: peter.schuller@infidyne.com [1] Guido Falsi <mad@madpilot.net. [2]
31 lines
646 B
Bash
31 lines
646 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: jabber_pyicq
|
|
# REQUIRE: DAEMON %%JABBER_REQUIRE%%
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Define these jabber_pyicq_* variables in one of these files:
|
|
# /etc/rc.conf
|
|
# /etc/rc.conf.local
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="jabber_pyicq"
|
|
rcvar=`set_rcvar`
|
|
|
|
load_rc_config $name
|
|
|
|
: ${jabber_pyicq_enable="NO"}
|
|
: ${jabber_pyicq_dir="%%PREFIX%%/lib/jabber/pyicq"}
|
|
: ${jabber_pyicq_piddir="%%JABBER_PIDDIR%%"}
|
|
: ${jabber_pyicq_user="%%JABBER_USER%%"}
|
|
|
|
pidfile="${jabber_pyicq_piddir}/PyICQt.pid"
|
|
command_interpreter="%%PYTHON_CMD%%"
|
|
command="${jabber_pyicq_dir}/PyICQt.py"
|
|
command_args="-b -o pid=${pidfile}"
|
|
|
|
run_rc_command "$1"
|