diff options
author | Renato Botelho <garga@FreeBSD.org> | 2018-10-02 10:58:37 +0000 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2018-10-02 10:58:37 +0000 |
commit | 574f70ef771c7caf2c07b66a6e1c26d8e06fa91e (patch) | |
tree | 68efa9f6c49f21a1b5c69b2ead23c2759992cc46 /security/strongswan | |
parent | 83d49e123a84a13d60c34e35a3764278af871671 (diff) |
Notes
Diffstat (limited to 'security/strongswan')
-rw-r--r-- | security/strongswan/files/strongswan.in | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/security/strongswan/files/strongswan.in b/security/strongswan/files/strongswan.in index 85da87dea437..527fcbf0a68d 100644 --- a/security/strongswan/files/strongswan.in +++ b/security/strongswan/files/strongswan.in @@ -7,27 +7,31 @@ # BEFORE: LOGIN # KEYWORD: shutdown -command="%%PREFIX%%/sbin/ipsec" . /etc/rc.subr -name="strongswan" -rcvar=${name}_enable +name=strongswan +rcvar=strongswan_enable + extra_commands="reload statusall" load_rc_config $name -start_cmd="strongswan_command start" -stop_cmd="strongswan_command stop" -restart_cmd="strongswan_command restart" -status_cmd="strongswan_command status" -reload_cmd="strongswan_command reload" -statusall_cmd="strongswan_command statusall" +command="%%PREFIX%%/sbin/ipsec" +start_precmd="strongswan_precmd" +stop_cmd="strongswan_cmd" +status_cmd="strongswan_cmd" +reload_cmd="strongswan_cmd" +statusall_cmd="strongswan_cmd" -strongswan_command() +strongswan_precmd() { - $command ${rc_arg} + command_args=${rc_arg} } -run_rc_command "$1" +strongswan_cmd() +{ + ${command} ${rc_arg} +} +run_rc_command "$1" |