blob: 44e2a567382964c6bf937d309cee19c144039527 (
plain) (
blame)
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
32
33
34
35
36
37
|
#!/bin/sh
# Start or stop jabber-users-agent
# $FreeBSD$
# PROVIDE: jabber_users_agent
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# Define these jabber_users_agent_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
jabber_users_agent_dir=${jabberd_users_agent_dir-"%%PREFIX%%/lib/jabber/users-agent"}
jabber_users_agent_enable=${jabberd_users_agent_enable-"NO"}
. /etc/rc.subr
name="jabber_users_agent"
rcvar=`set_rcvar`
command_interpreter="%%PERL%%"
command="${jabber_users_agent_dir}/users-agent"
command_args="&"
pidfile="/var/jabberd/pid/users-agent.pid"
load_rc_config $name
stop_postcmd="jabber_users_agent_stop_post"
jabber_users_agent_stop_post () {
rm -f ${pidfile}
}
run_rc_command "$1"
|