From d2d39d526e77c4651ff9d115b193c528c9c46b2b Mon Sep 17 00:00:00 2001 From: saq Date: Wed, 25 Jul 2001 16:31:00 +0000 Subject: [PATCH] - use macros in %{pre,post}{,un} - need rebuilt rpm (with new macros.pld) to build these Changed files: sendmail.spec -> 1.53 --- sendmail.spec | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/sendmail.spec b/sendmail.spec index 37bf13f..cc50381 100644 --- a/sendmail.spec +++ b/sendmail.spec @@ -256,20 +256,10 @@ fi done } > /dev/null 2>&1 -/sbin/chkconfig --add sendmail -if [ -f /var/lock/subsys/sendmail ]; then - /etc/rc.d/init.d/sendmail restart >&2 -else - echo "Run \"/etc/rc.d/init.d/sendmail start\" to start sendmail daemon." >&2 -fi +DESC="sendmail daemon"; %chkconfig_add %preun -if [ "$1" = "0" ]; then - if [ -f /var/lock/subsys/sendmail ]; then - /etc/rc.d/init.d/sendmail stop >&2 - fi - /sbin/chkconfig --del sendmail -fi +%chkconfig_del # removal of compatibility links %triggerpostun -- sendmail < 8.10.1 -- 2.44.0