Project

General

Profile

Actions

Bug #17810

closed

Remaining files after agent uninstall

Added by François ARMAND over 4 years ago. Updated over 1 year ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Packaging
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

These files are remaning (on centos 8) after agent version 5.0.13 is uninstalled:

  • /etc/systemd/system/rudder-agent.service.requires
  • /etc/systemd/system/rudder-agent.service.wants
  • /etc/systemd/system/multi-user.target.wants/rudder-agent.service
  • /etc/systemd/system/multi-user.target.wants/rudder-cf-execd.service
  • /etc/systemd/system/multi-user.target.wants/rudder-cf-serverd.service
  • /etc/systemd/system/rudder-agent.service.requires/rudder-cf-execd.service
  • /etc/systemd/system/rudder-agent.service.wants/rudder-cf-serverd.service
For server, you may also have:
  • /etc/systemd/system/multi-user.target.wants/rudder-relayd.service
  • /etc/systemd/system/multi-user.target.wants/rudder-jetty.service
  • /etc/systemd/system/multi-user.target.wants/rudder-slapd.service
  • /etc/systemd/system/multi-user.target.wants/rudder-server.service
  • /etc/systemd/system/rudder-server.service.requires
  • /etc/systemd/system/rudder-server.service.requires/rudder-relayd.service
  • /etc/systemd/system/rudder-server.service.requires/rudder-jetty.service
  • /etc/systemd/system/rudder-server.service.requires/rudder-slapd.service

Sometimes, depending on package installation update history, you get:

  • /etc/cron.d/rudder-agent.rpmsave

On some (old) version of agent, you can get:

  • /etc/cron.d/rudder-agent
  • /etc/profile.d/rudder-agent.sh
  • /etc/rsyslog.d/rudder-agent.conf

Workaround:

- /etc/cron.d/rudder-agent.rpmsave, /etc/cron.d/rudder-agent, /etc/profile.d/rudder-agent.sh and /etc/rsyslog.d/rudder-agent.conf can be deleted,
- systemd files can be removed by systemd. For each service, you need to do: systemctl disable $service, starting by deeper ones:

systemctl disable rudder-cf-serverd
systemctl disable rudder-cf-execd
systemctl disable rudder-agent
systemctl disable rudder-relayd
systemctl disable rudder-jetty
systemctl disable rudder-slapd
systemctl disable rudder-server

If these systemctl commands don't work, you can delete these file with rm, then reload systemd config:

systemctl daemon-reload

Related issues 1 (0 open1 closed)

Is duplicate of Rudder - Bug #23146: Actually allow uninstalling the agentReleasedBenoît PECCATTEActions
Actions

Also available in: Atom PDF