aboutsummaryrefslogblamecommitdiff
path: root/security/ike/files/iked.in
blob: 73d8f38cb02584990f7c00f9051840a5f8afe2e0 (plain) (tree)






















                                                        
                 




                                               
#!/bin/sh
#
# rc.d script for iked
#
# $Id$

# PROVIDE: iked
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable iked:
#
#  #required
#  iked_enable="YES"
#

. "/etc/rc.subr"

# defaults
iked_enable=${iked_enable:-"NO"}

name=iked
rcvar=iked_enable
load_rc_config $name
command=/usr/local/sbin/iked
command_args="-p /var/run/iked.pid > /dev/null"

run_rc_command "$1"