blob: b0effa5dbd994853ca2546a4fdb72f5f981292c8 (
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
|
#!/bin/sh
# PROVIDE: jggtrans
# REQUIRE: DAEMON %%JABBER_USER%%
# BEFORE: LOGIN
# KEYWORD: shutdown
# DO NOT CHANGE THESE DEFAULT VALUES HERE
# SET THEM IN THE /etc/rc.conf
. /etc/rc.subr
name="jggtrans"
rcvar=jggtrans_enable
load_rc_config $name
: ${jggtrans_enable="NO"}
: ${jggtrans_program="%%PREFIX%%/sbin/jggtrans"}
: ${jggtrans_flags="-u %%JABBER_USER%% -g %%JABBER_USER%%"}
: ${jggtrans_pidfile="/var/jabberd/pid/jggtrans.pid"}
start_cmd="echo \"Starting ${name}.\"; /usr/bin/nice -5 ${jggtrans_program} ${jggtrans_flags}"
run_rc_command "$1"
|