Fix initscript's status function

This commit is contained in:
Pavel Šimerda
2012-02-15 16:18:56 +01:00
parent a54ddf607a
commit af9e7a0100
2 changed files with 7 additions and 3 deletions

View File

@@ -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() {

View File

@@ -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