ipsec (168531) | ipsec (169668) |
---|---|
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 168531 2007-04-09 08:53:40Z des $ | 4# $FreeBSD: head/etc/rc.d/ipsec 169668 2007-05-18 12:04:41Z mtm $ |
5# 6 7# PROVIDE: ipsec 8# REQUIRE: FILESYSTEMS 9# BEFORE: DAEMON mountcritremote 10# KEYWORD: nojail 11 12. /etc/rc.subr --- 8 unchanged lines hidden (view full) --- 21extra_commands="reload" 22ipsec_program="/sbin/setkey" 23# ipsec_file is set by rc.conf 24 25ipsec_prestart() 26{ 27 if [ ! -f "$ipsec_file" ]; then 28 warn "$ipsec_file not readable; ipsec start aborted." | 5# 6 7# PROVIDE: ipsec 8# REQUIRE: FILESYSTEMS 9# BEFORE: DAEMON mountcritremote 10# KEYWORD: nojail 11 12. /etc/rc.subr --- 8 unchanged lines hidden (view full) --- 21extra_commands="reload" 22ipsec_program="/sbin/setkey" 23# ipsec_file is set by rc.conf 24 25ipsec_prestart() 26{ 27 if [ ! -f "$ipsec_file" ]; then 28 warn "$ipsec_file not readable; ipsec start aborted." |
29 # 30 # If booting directly to multiuser, send SIGTERM to 31 # the parent (/etc/rc) to abort the boot 32 # 33 if [ "$autoboot" = yes ]; then 34 echo "ERROR: ABORTING BOOT (sending SIGTERM to parent)!" 35 kill -TERM $$ 36 exit 1 37 fi | 29 stop_boot |
38 return 1 39 fi 40 return 0 41} 42 43ipsec_start() 44{ 45 echo "Installing ipsec manual keys/policies." --- 23 unchanged lines hidden --- | 30 return 1 31 fi 32 return 0 33} 34 35ipsec_start() 36{ 37 echo "Installing ipsec manual keys/policies." --- 23 unchanged lines hidden --- |