Package: watchdog
Severity: normal
X-Debbugs-Cc: jav...@miqueleiz.com

-- System Information:
Debian Release: 12.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-8-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages watchdog depends on:
ii  debconf [debconf-2.0]      1.5.82
ii  libc6                      2.36-9
ii  sysvinit-utils [lsb-base]  3.06-4
ii  udev                       252.6-1

watchdog recommends no packages.

watchdog suggests no packages.
----------------------------------


Steps to reproduce:
----------------------------------
# Make a clean install of Debian 12

# Update the system to the latest packages available
apt update && apt upgrade

# Install watchdog
apt install watchdog

# Check for failed systemd units
systemctl list-units --state=failed
  UNIT LOAD ACTIVE SUB DESCRIPTION
0 loaded units listed.

# Remove watchdog from the system
apt purge watchdog
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  watchdog*
0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
After this operation, 234 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 168525 files and directories currently installed.)
Removing watchdog (5.16-1+b2) ...
Processing triggers for man-db (2.11.2-2) ...
(Reading database ... 168497 files and directories currently installed.)
Purging configuration files for watchdog (5.16-1+b2) ...

# Check systemd status
systemctl is-system-running
degraded

# Check for failed systemd units
systemctl list-units --state=failed
  UNIT                 LOAD      ACTIVE SUB    DESCRIPTION         
● wd_keepalive.service not-found failed failed wd_keepalive.service

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
1 loaded units listed.
----------------------------------


----------------------------------
#In order the return systemd to the normal "running" status, the 
wd_keepalive.service must be reset:
systemctl reset-failed wd_keepalive.service

# Now everything looks fine again
systemctl is-system-running
running


Expected results:
I think the package removing process should go more smoothly. Leaving systemd 
status as "degraded" can be problematic, especially if there is some monitoring 
software checking system status.

Reply via email to