Project

General

Profile

Bug #201

/etc/cron.daily/9999zombie doesn't work on Debian systems

Added by Florian Effenberger almost 4 years ago. Updated 27 days ago.

Status:
Closed
Priority:
Low
Category:
-
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Tags:
EasyHack, Salt
URL:

Description

/etc/cron.daily/9999zombie doesn't work on Debian systems, as the landscape package doesn't exist
A different approach for detecting need for zombie kill is required

History

#1 Updated by Alexander Werner over 3 years ago

See http://stackoverflow.com/questions/7039520/bash-how-to-detect-whether-apt-get-requires-a-reboot: Use checkrestart from debian-goodies or check for /var/run/reboot-required.

#2 Updated by Florian Effenberger over 3 years ago

  • Description updated (diff)

#3 Updated by Florian Effenberger over 3 years ago

As for zombies, this should do:

ps auxw | grep defunct

And for killing them (not tried, out of my head):

ps auxw | grep defunct | awk {'print $5'} | xargs kill -9

#4 Updated by Florian Effenberger over 3 years ago

My bad:

ps auxw | grep defunct | awk {'print $5'} | -> then ps xal | grep for that, then kill -9 what ps xal yields (or somesuch :)

#5 Updated by Florian Effenberger about 3 years ago

  • Priority changed from Normal to Low

Nothing urgent, releasing for the public, some task for volunteers to get involved IMHO

#6 Updated by Alexander Werner over 2 years ago

  • Tags EasyHack, Salt added

#7 Updated by Florian Effenberger over 2 years ago

  • Assignee deleted (Alexander Werner)

Releasing that into the general public queue - not critical at all, and a nice EasyHack indeed, as zombie detection can also be done by different means (landscape-common is not available on Debian, at least not from the default repos)

#8 Updated by Guilhem Moulin 27 days ago

  • Status changed from New to Closed
  • Assignee set to Guilhem Moulin
  • % Done changed from 0 to 100

Also available in: Atom PDF