Deleted Added
full compact
ipsec (136224) ipsec (151270)
1#!/bin/sh
2#
3# $NetBSD: ipsec,v 1.7 2002/03/22 04:33:58 thorpej Exp $
1#!/bin/sh
2#
3# $NetBSD: ipsec,v 1.7 2002/03/22 04:33:58 thorpej Exp $
4# $FreeBSD: head/etc/rc.d/ipsec 136224 2004-10-07 13:55:26Z mtm $
4# $FreeBSD: head/etc/rc.d/ipsec 151270 2005-10-12 21:40:41Z pjd $
5#
6
7# PROVIDE: ipsec
8# REQUIRE: root mountcritlocal
9# BEFORE: DAEMON
10# KEYWORD: nojail
11
12# it does not really require beforenetlkm.
13
14. /etc/rc.subr
15
16name="ipsec"
17rcvar=`set_rcvar`
18start_precmd="ipsec_prestart"
19start_cmd="ipsec_start"
20stop_precmd="test -f /etc/ipsec.conf"
21stop_cmd="ipsec_stop"
22reload_cmd="ipsec_reload"
23extra_commands="reload"
5#
6
7# PROVIDE: ipsec
8# REQUIRE: root mountcritlocal
9# BEFORE: DAEMON
10# KEYWORD: nojail
11
12# it does not really require beforenetlkm.
13
14. /etc/rc.subr
15
16name="ipsec"
17rcvar=`set_rcvar`
18start_precmd="ipsec_prestart"
19start_cmd="ipsec_start"
20stop_precmd="test -f /etc/ipsec.conf"
21stop_cmd="ipsec_stop"
22reload_cmd="ipsec_reload"
23extra_commands="reload"
24ipsec_program="/usr/sbin/setkey"
24ipsec_program="/sbin/setkey"
25# ipsec_file is set by rc.conf
26
27ipsec_prestart()
28{
29 if [ ! -f "$ipsec_file" ]; then
30 warn "$ipsec_file not readable; ipsec start aborted."
31 #
32 # If booting directly to multiuser, send SIGTERM to

--- 40 unchanged lines hidden ---
25# ipsec_file is set by rc.conf
26
27ipsec_prestart()
28{
29 if [ ! -f "$ipsec_file" ]; then
30 warn "$ipsec_file not readable; ipsec start aborted."
31 #
32 # If booting directly to multiuser, send SIGTERM to

--- 40 unchanged lines hidden ---