2009-08-22 Sancho Lerena <slerena@artica.es>

* pandora_server.spec: Update uninstall process.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1872 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2009-08-23 21:49:25 +00:00
parent a9e080ed31
commit 409d50d61f
2 changed files with 18 additions and 13 deletions

View File

@ -1,3 +1,7 @@
2009-08-22 Sancho Lerena <slerena@artica.es>
* pandora_server.spec: Update uninstall process.
2009-08-20 Sancho lerena <slerena@artica.es> 2009-08-20 Sancho lerena <slerena@artica.es>
* lib/PandoraFMS/Tools.pm: Undone commit of 19/8 to fix ugly mesg from * lib/PandoraFMS/Tools.pm: Undone commit of 19/8 to fix ugly mesg from

View File

@ -92,8 +92,6 @@ fi
if [ ! -e /etc/pandora/pandora_server.conf ] ; then if [ ! -e /etc/pandora/pandora_server.conf ] ; then
ln -s /usr/share/pandora_server/conf/pandora_server.conf /etc/pandora/ ln -s /usr/share/pandora_server/conf/pandora_server.conf /etc/pandora/
echo "Pandora FMS Server configuration is /etc/pandora/pandora_server.conf" echo "Pandora FMS Server configuration is /etc/pandora/pandora_server.conf"
# echo "Pandora FMS Server data has been placed under /var/spool/pandora/data_in/"
# echo "Pandora FMS Server logs has been placed under /var/log/"
echo "Pandora FMS Server main directory is %{prefix}/pandora_server/" echo "Pandora FMS Server main directory is %{prefix}/pandora_server/"
echo "The manual can be reached at: man pandora or man pandora_server" echo "The manual can be reached at: man pandora or man pandora_server"
echo "Pandora FMS Documentation is in: http://pandorafms.org" echo "Pandora FMS Documentation is in: http://pandorafms.org"
@ -103,17 +101,20 @@ fi
/etc/init.d/tentacle_serverd start /etc/init.d/tentacle_serverd start
%preun %preun
if [ "$1" = 0 ]; then /etc/init.d/pandora_server stop &>/dev/null
# stop pandora silently, but only if it's running /etc/init.d/tentacle_serverd stop &>/dev/null
/usr/sbin/pandora_server stop &>/dev/null %if "%{_vendor}" == "redhat"
%if "%{_vendor}" == "redhat" /sbin/chkconfig --del pandora_server
/sbin/chkconfig --del pandora_server %endif
%endif rm -Rf /etc/pandora/pandora_server.conf
rm -Rf /etc/init.d/pandora_server rm -Rf /etc/rc.d/rc5.d/S99pandora_server
rm -Rf /etc/init.d/tentacle_serverd rm -Rf /etc/rc.d/rc3.d/S99pandora_server
rm -Rf /etc/pandora/pandora_server.conf rm -Rf /etc/rc.d/rc2.d/S99pandora_server
rm -Rf /usr/share/pandora_server rm -Rf /etc/rc.d/rc0.d/K99pandora_server
fi rm -Rf /etc/rc.d/rc5.d/S99tentacle_serverd
rm -Rf /etc/rc.d/rc3.d/S99tentacle_serverd
rm -Rf /etc/rc.d/rc2.d/S99tentacle_serverd
rm -Rf /etc/rc.d/rc0.d/K99tentacle_serverd
%files %files