freebsd-ports/security/strongswan/files/strongswan.in
Olli Hauer 7ee3843173 - update to version 5.0.4 which fixes CVE-2013-2944.
- 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)
2013-05-03 18:16:35 +00:00

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"