blob: 7ae9a5f9f518248597cc5bde3a7d91c925b90e5b (
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
|
#!/bin/sh
# PROVIDE: yadifad
# REQUIRE: SERVERS cleanvar
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable yadifad:
#
# yadifad_enable="YES"
# # optional
# yadifad_config="%%PREFIX%%/etc/yadifad.conf"
. /etc/rc.subr
name=yadifad
rcvar=yadifad_enable
load_rc_config ${name}
: ${yadifad_enable:="NO"}
: ${yadifad_config="%%PREFIX%%/etc/yadifad.conf"}
command=%%PREFIX%%/sbin/${name}
procname=%%PREFIX%%/sbin/${name}
pidfile=/var/run/${name}.pid
command_args="-c ${yadifad_config} -d"
required_files=${yadifad_config}
run_rc_command "$1"
|