summaryrefslogtreecommitdiff
path: root/net-im/jabber-pyicq/files/jabber-pyicq-transport.in
blob: f632d68bd6b9808ee4f9b176ca213e163a6d45dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/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
#

. /etc/rc.subr

name="jabber_pyicq"
rcvar=jabber_pyicq_enable

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"