Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Oct 2018 10:58:37 +0000 (UTC)
From:      Renato Botelho <garga@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r481110 - head/security/strongswan/files
Message-ID:  <201810021058.w92AwbLn072881@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: garga
Date: Tue Oct  2 10:58:37 2018
New Revision: 481110
URL: https://svnweb.freebsd.org/changeset/ports/481110

Log:
  security/strongswan: Fix rc startup script to support rc.conf settings like
  _nice, _fib
  
  Do not bump version since I'll commit the upgrade to 5.7.1 just after it
  
  PR:		211108
  Submitted by:	Dmitry Wagin <dmitry.wagin@ya.ru>
  Approved by:	maintainer
  Sponsored by:	Rubicon Communications, LLC (Netgate)

Modified:
  head/security/strongswan/files/strongswan.in

Modified: head/security/strongswan/files/strongswan.in
==============================================================================
--- head/security/strongswan/files/strongswan.in	Tue Oct  2 09:41:24 2018	(r481109)
+++ head/security/strongswan/files/strongswan.in	Tue Oct  2 10:58:37 2018	(r481110)
@@ -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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810021058.w92AwbLn072881>