%define name pl_mom
%define version 0.4
-%define release 1%{?pldistro:.%{pldistro}}%{?date:.%{date}}
+%define release 3%{?pldistro:.%{pldistro}}%{?date:.%{date}}
Summary: PlanetLab node monitoring tools
Name: %{name}
%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