Fix initscript's status function
This commit is contained in:
@@ -15,7 +15,7 @@ Index: strongswan-4.6.1/init/sysvinit/strongswan
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ strongswan-4.6.1/init/sysvinit/strongswan
|
||||
@@ -0,0 +1,101 @@
|
||||
@@ -0,0 +1,102 @@
|
||||
+#!/bin/sh
|
||||
+#
|
||||
+# strongswan An implementation of key management system for IPsec
|
||||
@@ -37,6 +37,7 @@ Index: strongswan-4.6.1/init/sysvinit/strongswan
|
||||
+
|
||||
+exec="/usr/sbin/strongswan"
|
||||
+prog="strongswan"
|
||||
+prog1="starter"
|
||||
+config="/etc/racoon2/racoon2.conf"
|
||||
+
|
||||
+[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
|
||||
@@ -78,7 +79,7 @@ Index: strongswan-4.6.1/init/sysvinit/strongswan
|
||||
+
|
||||
+rh_status() {
|
||||
+ # run checks to determine if the service is running or use generic status
|
||||
+ status $prog
|
||||
+ status $prog1
|
||||
+}
|
||||
+
|
||||
+rh_status_q() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Name: strongswan
|
||||
Version: 4.6.1
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
Summary: An OpenSource IPsec-based VPN Solution
|
||||
Group: System Environment/Daemons
|
||||
License: GPLv2+
|
||||
@@ -181,6 +181,9 @@ fi
|
||||
#TODO manpages
|
||||
|
||||
%changelog
|
||||
* Wed Feb 15 2012 Pavel Šimerda <pavlix@pavlix.net> - 4.6.1-8
|
||||
- Fix initscript's status function
|
||||
|
||||
* Wed Feb 15 2012 Pavel Šimerda <pavlix@pavlix.net> - 4.6.1-7
|
||||
- Expand tabs in config files for better readability
|
||||
- Add sysvinit script for epel6
|
||||
|
||||
Reference in New Issue
Block a user