blob: 3753bf726c562b4536f641a5667735f1cf827a36 (
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
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: sj3
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
# Define these sj3_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/sj3
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
sj3_enable=${sj3_enable:-"NO"} # Enable sj3
#sj3_program="%%PREFIX%%/sbin/sj3serv" # Location of sj3
. /etc/rc.subr
name="sj3"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/sj3serv"
start_precmd="sj3serv_precmd"
sj3serv_precmd()
{
mkdir -p -m 0755 /var/run/sj3
chown _sj3:_sj3 /var/run/sj3
}
load_rc_config $name
run_rc_command "$1"
|