]> git.pld-linux.org Git - packages/syslog-ng.git/commitdiff
- use macros in %{pre,post}{,un}
authorsaq <saq@pld-linux.org>
Wed, 25 Jul 2001 16:31:01 +0000 (16:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- need rebuilt rpm (with new macros.pld) to build these

Changed files:
    syslog-ng.spec -> 1.47

syslog-ng.spec

index 91e2a76529cd5186fbb2331ee66a1e6aca2cce24..46492fc4f6f79ad841936bd55791f596621e5ad4 100644 (file)
@@ -77,23 +77,13 @@ do
        chmod 640 $n
 done
 
-/sbin/chkconfig --add syslog-ng
-if [ -f /var/lock/subsys/syslog-ng ]; then
-       /etc/rc.d/init.d/syslog-ng restart &>/dev/null
-else
-       echo "Run \"/etc/rc.d/init.d/syslog-ng start\" to start syslog-ng daemon."
-fi
+DESC="syslog-ng daemon"; %chkconfig_add
 if [ -f /var/lock/subsys/klogd ]; then
        /etc/rc.d/init.d/klogd restart 1>&2
 fi
 
 %preun
-if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/syslog-ng ]; then
-               /etc/rc.d/init.d/syslog-ng stop >&2
-       fi
-       /sbin/chkconfig --del syslog-ng
-fi
+%chkconfig_del
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.035464 seconds and 4 git commands to generate.