2003-07-31 12:38:32 +02:00
|
|
|
#!@RCD_SCRIPTS_SHELL@
|
2002-04-04 11:42:27 +02:00
|
|
|
#
|
2003-07-31 12:38:32 +02:00
|
|
|
# $NetBSD: isakmpd.sh,v 1.2 2003/07/31 10:38:33 jmmv Exp $
|
2002-04-04 11:42:27 +02:00
|
|
|
#
|
2003-07-31 12:38:32 +02:00
|
|
|
# PROVIDE: isakmpd
|
|
|
|
# REQUIRE: DAEMON NETWORK
|
|
|
|
#
|
|
|
|
|
|
|
|
if [ -f /etc/rc.subr ]; then
|
|
|
|
. /etc/rc.subr
|
|
|
|
fi
|
|
|
|
|
|
|
|
name="isakmpd"
|
|
|
|
rcvar="${name}"
|
|
|
|
command="@PREFIX@/sbin/isakmpd"
|
|
|
|
pidfile="/var/run/isakmpd.pid"
|
|
|
|
required_files="@PKG_SYSCONFDIR@/isakmpd.conf"
|
2002-04-04 11:42:27 +02:00
|
|
|
|
2003-07-31 12:38:32 +02:00
|
|
|
if [ -f /etc/rc.subr ]; then
|
|
|
|
load_rc_config "${name}"
|
|
|
|
run_rc_command "$1"
|
|
|
|
else
|
|
|
|
printf " ${name}"
|
|
|
|
eval ${command} ${isakmpd_flags} ${command_args}
|
|
|
|
fi
|