summary: pcu controls for monitor and plcapi
group: applications/system
requires: python
+requires: OpenIPMI-tools
%description pcucontrol
both monitor and the plcapi use a set of common commands to reboot machines
touch $RPM_BUILD_ROOT/var/www/cgi-bin/monitor/monitorconfig.php
chmod 777 $RPM_BUILD_ROOT/var/www/cgi-bin/monitor/monitorconfig.php
-install -D -m 644 rt3/syncrtusers.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/syncrtusers.cron
+install -D -m 644 rt3/rt.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/rt.cron
+chmod 755 $RPM_BUILD_ROOT/usr/share/%{name}/rt3/adduserstort.pl
+chmod 755 $RPM_BUILD_ROOT/usr/share/%{name}/rt3/rtcron.d/*.sh
#install -D -m 755 monitor-default.conf $RPM_BUILD_ROOT/etc/monitor.conf
#cp $RPM_BUILD_ROOT/usr/share/%{name}/monitorconfig-default.py $RPM_BUILD_ROOT/usr/share/%{name}/monitorconfig.py
%defattr(-,root,root)
/usr/share/%{name}/rt3
%{_sysconfdir}/plc.d/rt3
-%{_sysconfdir}/cron.d/syncrtusers.cron
+%{_sysconfdir}/cron.d/rt.cron
%files pcucontrol
%{python_sitearch}/pcucontrol
%post runlevelagent
chkconfig --add monitor-runlevelagent
chkconfig monitor-runlevelagent on
+if [ "$PL_BOOTCD" != "1" ] ; then
+ service monitor-runlevelagent restart
+fi
+
%changelog
* Thu Jun 18 2009 Stephen Soltesz <soltesz@cs.princeton.edu> - Monitor-3.0-17