Lines 16-27
extra_commands="reload statusall"
Link Here
|
16 |
|
16 |
|
17 |
load_rc_config $name |
17 |
load_rc_config $name |
18 |
|
18 |
|
|
|
19 |
strongswan_swanctl_enable=${strongswan_swanctl_enable:-"NO"} |
20 |
|
19 |
command="%%PREFIX%%/sbin/ipsec" |
21 |
command="%%PREFIX%%/sbin/ipsec" |
20 |
|
22 |
|
21 |
start_precmd="strongswan_precmd" |
23 |
start_precmd="strongswan_precmd" |
|
|
24 |
start_postcmd="strongswan_postcmd" |
22 |
stop_cmd="strongswan_cmd" |
25 |
stop_cmd="strongswan_cmd" |
23 |
status_cmd="strongswan_cmd" |
26 |
status_cmd="strongswan_cmd" |
24 |
reload_cmd="strongswan_cmd" |
27 |
reload_cmd="strongswan_cmd" |
|
|
28 |
reload_postcmd="strongswan_postcmd" |
25 |
statusall_cmd="strongswan_cmd" |
29 |
statusall_cmd="strongswan_cmd" |
26 |
|
30 |
|
27 |
strongswan_precmd() |
31 |
strongswan_precmd() |
Lines 29-34
strongswan_precmd()
Link Here
|
29 |
command_args=${rc_arg} |
33 |
command_args=${rc_arg} |
30 |
} |
34 |
} |
31 |
|
35 |
|
|
|
36 |
strongswan_postcmd() |
37 |
{ |
38 |
if checkyesno strongswan_swanctl_enable; then |
39 |
sleep 1 |
40 |
%%PREFIX%%/sbin/swanctl --load-all --noprompt |
41 |
fi |
42 |
} |
43 |
|
32 |
strongswan_cmd() |
44 |
strongswan_cmd() |
33 |
{ |
45 |
{ |
34 |
${command} ${rc_arg} |
46 |
${command} ${rc_arg} |