From a734f5acf9ea08642131a594382e0360a7c56aa4 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Fri, 7 Apr 2006 17:12:25 +0000 Subject: [PATCH] - stop plc services before upgrading --- myplc.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/myplc.spec b/myplc.spec index e8f8f10..d783f72 100644 --- a/myplc.spec +++ b/myplc.spec @@ -70,6 +70,11 @@ if [ -n "$SUDO_USER" ] ; then chown -R $SUDO_USER %{_rpmdir}/%{_arch} fi +%pre +if [ -x %{_sysconfdir}/init.d/plc ] ; then + service plc stop +fi + %post chkconfig --add plc chkconfig plc on -- 2.43.0