wazuh-packages
wazuh-packages copied to clipboard
DEB: Service is not deleted after removing the package
Hi all,
if you uninstall the wazuh-manager and wazuh-agent package, the wazuh-manager.service
and wazuh-agent.service
are not deleted.
root@ubuntu-bionic:/home/vagrant# find /etc/ -name "*wazuh*"
/etc/rc4.d/K01wazuh-agent
/etc/systemd/system/wazuh-agent.service
/etc/rc0.d/K01wazuh-agent
/etc/rc2.d/K01wazuh-agent
/etc/rc1.d/K01wazuh-agent
/etc/rc6.d/K01wazuh-agent
/etc/init.d/wazuh-agent
/etc/rc3.d/K01wazuh-agent
/etc/rc5.d/K01wazuh-agent
/etc/apt/sources.list.d/wazuh.list
root@ubuntu-bionic:/home/vagrant# systemctl status wazuh-agent
● wazuh-agent.service - Wazuh agent
Loaded: loaded (/etc/systemd/system/wazuh-agent.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Oct 09 14:57:06 ubuntu-bionic env[3773]: Completed.
Oct 09 14:57:06 ubuntu-bionic systemd[1]: Started Wazuh agent.
Oct 09 15:04:04 ubuntu-bionic systemd[1]: Stopping Wazuh agent...
Oct 09 15:04:04 ubuntu-bionic env[3899]: Killing wazuh-modulesd ..
Oct 09 15:04:04 ubuntu-bionic env[3899]: Killing ossec-logcollector ..
Oct 09 15:04:04 ubuntu-bionic env[3899]: Killing ossec-syscheckd ..
Oct 09 15:04:04 ubuntu-bionic env[3899]: Killing ossec-agentd ..
Oct 09 15:04:04 ubuntu-bionic env[3899]: Killing ossec-execd ..
Oct 09 15:04:04 ubuntu-bionic env[3899]: Wazuh v3.7.0 Stopped
Oct 09 15:04:04 ubuntu-bionic systemd[1]: Stopped Wazuh agent.
Update: working in this branch 3.7-deb-uninstall-services.
Pending for new major Wazuh Packages implementation