Merge from vendor branch TNF:
[pkgsrc.git] / security / isakmpd / files / isakmpd.sh
1 #!@RCD_SCRIPTS_SHELL@
2 #
3 # $NetBSD: isakmpd.sh,v 1.1 2002/04/04 09:42:30 martti Exp $
4 #
5 # PROVIDE: isakmpd
6 # REQUIRE: DAEMON NETWORK
7 #
8
9 if [ -f /etc/rc.subr ]; then
10         . /etc/rc.subr
11 fi
12
13 name="isakmpd"
14 rcvar="${name}"
15 command="@PREFIX@/sbin/isakmpd"
16 pidfile="/var/run/isakmpd.pid"
17 required_files="@PKG_SYSCONFDIR@/isakmpd.conf"
18
19 if [ -f /etc/rc.subr ]; then
20         load_rc_config "${name}"
21         run_rc_command "$1"
22 else
23         printf " ${name}"
24         eval ${command} ${isakmpd_flags} ${command_args}
25 fi