From: Mark Huang Date: Tue, 30 May 2006 17:42:00 +0000 (+0000) Subject: - stop old version of pl_mom before upgrading X-Git-Tag: myplc-0_4-rc1~3 X-Git-Url: http://git.onelab.eu/?p=mom.git;a=commitdiff_plain;h=36d48e6b65c5b4514e417f425aee54685989a605 - stop old version of pl_mom before upgrading --- diff --git a/pl_mom.spec b/pl_mom.spec index 2af45ec..34875f4 100644 --- a/pl_mom.spec +++ b/pl_mom.spec @@ -1,6 +1,6 @@ %define name pl_mom %define version 0.4 -%define release 1%{?pldistro:.%{pldistro}}%{?date:.%{date}} +%define release 2%{?pldistro:.%{pldistro}}%{?date:.%{date}} Summary: PlanetLab node monitoring tools Name: %{name} @@ -61,6 +61,13 @@ install -D -m 644 pl_mom.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/pl_mom %clean rm -rf $RPM_BUILD_ROOT +%pre +if [ "$PL_BOOTCD" != "1" ] ; then + service pl_mom stop +fi + +exit 0 + %post chkconfig --add swapmon chkconfig swapmon on