From ea5b30d3723554e12a453d0cc50375b7ec70c928 Mon Sep 17 00:00:00 2001 From: Thomas Woerner Date: Mon, 17 Sep 2007 15:29:06 +0000 Subject: [PATCH] - made init script fully lsb conform --- freeradius-1.1.7-lsb.patch | 6 +++--- freeradius.spec | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/freeradius-1.1.7-lsb.patch b/freeradius-1.1.7-lsb.patch index 7dfb5de..077af3d 100644 --- a/freeradius-1.1.7-lsb.patch +++ b/freeradius-1.1.7-lsb.patch @@ -1,6 +1,6 @@ diff -up freeradius-1.1.7/redhat/rc.radiusd-redhat.lsb freeradius-1.1.7/redhat/rc.radiusd-redhat --- freeradius-1.1.7/redhat/rc.radiusd-redhat.lsb 2002-09-14 01:13:58.000000000 +0200 -+++ freeradius-1.1.7/redhat/rc.radiusd-redhat 2007-09-17 17:02:58.000000000 +0200 ++++ freeradius-1.1.7/redhat/rc.radiusd-redhat 2007-09-17 17:20:07.000000000 +0200 @@ -20,6 +20,14 @@ # Copyright (C) 2001 The FreeRADIUS Project http://www.freeradius.org # @@ -69,7 +69,7 @@ diff -up freeradius-1.1.7/redhat/rc.radiusd-redhat.lsb freeradius-1.1.7/redhat/r - RETVAL=$? - fi + condrestart|try-restart) -+ [ $running -eq 0 ] || exit 7 ++ [ $running -eq 0 ] || exit 0 + $0 stop + sleep 3 + $0 start @@ -78,7 +78,7 @@ diff -up freeradius-1.1.7/redhat/rc.radiusd-redhat.lsb freeradius-1.1.7/redhat/r *) echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}" - exit 1 -+ RETVAL=3 ++ RETVAL=2 esac exit $RETVAL diff --git a/freeradius.spec b/freeradius.spec index 5e63559..8f3fe3d 100644 --- a/freeradius.spec +++ b/freeradius.spec @@ -1,7 +1,7 @@ Summary: High-performance and highly configurable free RADIUS server Name: freeradius Version: 1.1.7 -Release: 3%{?dist} +Release: 3.1%{?dist} License: GPLv2+ and LGPLv2+ Group: System Environment/Daemons URL: http://www.freeradius.org/ @@ -301,6 +301,9 @@ fi %changelog +* Mon Sep 17 2007 Thomas Woerner 1.1.7-3.1 +- made init script fully lsb conform + * Mon Sep 17 2007 Thomas Woerner 1.1.7-3 - fixed initscript problem (rhbz#292521)