freebsd-ports/net-im/jabber-pyicq/files/jabber-pyicq-transport.sh.in
Renato Botelho daa3fc0c2f - Fix UTF8 decoding errors [1]
- 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]
2008-01-15 13:11:29 +00:00

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"