blob: 1b13f0f23ed51d5795f0dc7787effaa19dab0bf9 (
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
32
33
34
|
#!/bin/sh
# PROVIDE: ringd
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
# /etc/rc.conf lines:
# ringd_enable="YES" # enable ringd
# ringd_socket_user="pop" # user to own /var/run sockets
. /etc/rc.subr
name="ringd"
rcvar=ringd_enable
load_rc_config $name
: ${ringd_enable="NO"}
: ${ringd_socket_user="pop"}
command="%%PREFIX%%/sbin/ringd"
command_args="--user ${ringd_socket_user}"
start_precmd="${name}_prestart"
ringd_prestart()
{
mkdir -p /var/log/popular
chown ${ringd_socket_user} /var/log/popular
mkdir -p /var/run/popular
chown ${ringd_socket_user} /var/run/popular
}
run_rc_command "$1"
|