freebsd-ports/net-mgmt/ipcad/files/ipcad.in
Marcus Alves Grando 2b53c53222 - Preserve modified config file
- Respect MANPREFIX
- Use new rc.d script
- Bump PORTREVISION

PR:		93574
Submitted by:	maintainer
2006-02-20 02:48:34 +00:00

31 lines
576 B
Bash

#!/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".
#
. %%RC_SUBR%%
name="ipcad"
rcvar=${name}_enable
load_rc_config ${name}
: ${ipcad_enable="NO"}
: ${ipcad_conf="%%PREFIX%%/etc/ipcad.conf"}
: ${ipcad_flags=""}
required_files="${ipcad_conf}"
command=%%PREFIX%%/bin/ipcad
command_args="-rds -c ${ipcad_conf}"
run_rc_command "$1"