8 # BEFORE: DAEMON mountcritremote
14 desc="Internet Protocol Security protocol"
16 start_precmd="ipsec_prestart"
17 start_cmd="ipsec_start"
18 stop_precmd="test -f $ipsec_file"
20 reload_cmd="ipsec_reload"
21 extra_commands="reload"
22 ipsec_program="/sbin/setkey"
23 required_modules="ipsec"
24 # ipsec_file is set by rc.conf
28 if [ ! -f "$ipsec_file" ]; then
29 warn "$ipsec_file not readable; ipsec start aborted."
38 echo "Installing ipsec manual keys/policies."
39 ${ipsec_program} -f $ipsec_file
44 echo "Clearing ipsec manual keys/policies."
46 # Still not 100% sure if we would like to do this.
47 # It is very questionable to do this during shutdown session
48 # since it can hang any of the remaining IPv4/v6 sessions.
56 echo "Reloading ipsec manual keys/policies."
57 ${ipsec_program} -f "$ipsec_file"