aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/ipcad/files/ipcad.in
blob: 6285dfd85881b62590f4d2b05609fddaf8e3f6ab (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
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: ipcad
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf to run ipcad:
#
# ipcad_enable (bool):		Set it to "YES" to enable ipcad.
#				Default is "NO".
# ipcad_conf (file):		Set local of config file.
#				Default is "%%PREFIX%%/etc/ipcad.conf".
# ipcad_flags="<set as needed>"

. %%RC_SUBR%%

name="ipcad"
rcvar=${name}_enable

load_rc_config ${name}

: ${ipcad_enable="NO"}
: ${ipcad_conf="%%PREFIX%%/etc/ipcad.conf"}

required_files="${ipcad_conf}"
command=%%PREFIX%%/bin/ipcad
command_args="-rds -c ${ipcad_conf}"

run_rc_command "$1"