pandorafms/pandora_agents/unix/DEBIAN/prerm

17 lines
338 B
Bash
Executable File

#!/bin/bash
echo Stop Pandora agent daemon
/etc/init.d/pandora_agent_daemon stop
PANDORA_CFG=/etc/pandora
#rm -rf $PANDORA_CFG/plugins
#rm -rf $PANDORA_CFG/pandora_agent.conf
if [ -x `command -v systemctl` ]; then
systemctl disable pandora_agent_daemon
systemctl daemon-reload
else
update-rc.d -f pandora_agent_daemon remove
fi