SPECS: atheme.spec - use %service
aredridel
aredridel at pld-linux.org
Tue Apr 24 02:20:48 CEST 2007
Author: aredridel Date: Tue Apr 24 00:20:48 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- use %service
---- Files affected:
SPECS:
atheme.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/atheme.spec
diff -u SPECS/atheme.spec:1.1 SPECS/atheme.spec:1.2
--- SPECS/atheme.spec:1.1 Tue Apr 24 02:18:49 2007
+++ SPECS/atheme.spec Tue Apr 24 02:20:43 2007
@@ -74,19 +74,11 @@
%post
/sbin/chkconfig --add atheme
-if [ -f /var/lock/subsys/atheme ]; then
- /etc/rc.d/init.d/atheme restart 1>&2
-else
- echo "Run \"/etc/rc.d/init.d/atheme start\" to start IRC daemon."
-fi
+%service %{name} restart "Atheme IRC Services"
%preun
-if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/atheme ]; then
- /etc/rc.d/init.d/atheme stop 1>&2
- fi
- /sbin/chkconfig --del atheme
-fi
+%service %{name} stop "Atheme IRC Services"
+/sbin/chkconfig --del atheme
%postun
if [ "$1" = "0" ]; then
@@ -151,6 +143,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2007/04/24 00:20:43 aredridel
+- use %service
+
Revision 1.1 2007/04/24 00:18:49 aredridel
- added
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/atheme.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list