]> git.pld-linux.org Git - packages/atheme.git/commitdiff
- use %service
authoraredridel <aredridel@pld-linux.org>
Tue, 24 Apr 2007 00:20:43 +0000 (00:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    atheme.spec -> 1.2

atheme.spec

index 69fa846c12ebd9194c7c9a45f8ee34b552b3089b..0df3bb210ca0c9cb264d817ed781a602291eac9c 100644 (file)
@@ -73,19 +73,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %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
This page took 0.091436 seconds and 4 git commands to generate.