SPECS: gnu-radius.spec - use %service

aredridel aredridel at pld-linux.org
Thu Jun 28 23:13:59 CEST 2007


Author: aredridel                    Date: Thu Jun 28 21:13:59 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %service

---- Files affected:
SPECS:
   gnu-radius.spec (1.22 -> 1.23) 

---- Diffs:

================================================================
Index: SPECS/gnu-radius.spec
diff -u SPECS/gnu-radius.spec:1.22 SPECS/gnu-radius.spec:1.23
--- SPECS/gnu-radius.spec:1.22	Thu Jun 28 22:00:06 2007
+++ SPECS/gnu-radius.spec	Thu Jun 28 23:13:54 2007
@@ -135,20 +135,17 @@
 /sbin/ldconfig
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
 /sbin/chkconfig --add radius
-if [ -f /var/lock/subsys/radius ]; then
-	/etc/rc.d/init.d/radius restart >&2
-else
-	echo "Run \"/etc/rc.d/init.d/radius start\" to start radius daemon."
-fi
 touch /var/log/rad{utmp,wtmp,ius.log}
 chmod 640 /var/log/rad{utmp,wtmp,ius.log}
 
+%posttrans
+%service %{name} restart "GNU RADIUS server"
+exit 0
+
 %preun
 if [ "$1" = "0" ]; then
-	if [ -f /var/lock/subsys/radius ]; then
-		/etc/rc.d/init.d/radius stop >&2
-	fi
-	/sbin/chkconfig --del radius
+	%service %{name} stop
+	/sbin/chkconfig --del %{name}
 fi
 
 %postun
@@ -204,6 +201,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.23  2007/06/28 21:13:54  aredridel
+- use %service
+
 Revision 1.22  2007/06/28 20:00:06  aredridel
 - 1.4
 - add sysconfig file
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/gnu-radius.spec?r1=1.22&r2=1.23&f=u



More information about the pld-cvs-commit mailing list