7ee3843173
- add entry to vuxml - add CVE references to jankins vuxml entry while I'm here remove .sh from rc script PR: ports/178266 Submitted by: David Shane Holden <dpejesh@yahoo.com> Approved by: strongswan@nanoteq.com (maintainer)
33 lines
573 B
Bash
33 lines
573 B
Bash
#!/bin/sh
|
|
# Start or stop strongswan
|
|
# $FreeBSD$
|
|
|
|
# PROVIDE: strongswan
|
|
# REQUIRE: DAEMON
|
|
# BEFORE: LOGIN
|
|
# KEYWORD: shutdown
|
|
|
|
command="%%PREFIX%%/sbin/ipsec"
|
|
. /etc/rc.subr
|
|
|
|
name="strongswan"
|
|
rcvar=`set_rcvar`
|
|
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"
|
|
|
|
|
|
strongswan_command()
|
|
{
|
|
$command ${rc_arg}
|
|
}
|
|
|
|
run_rc_command "$1"
|
|
|