[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Approaches for killing left-behind processes



El dom, 08-11-2009 a las 20:00 +0100, Petter Reinholdtsen escribió:
> [José L. Redrejo Rodríguez]
> > As many people don't feel confident with gambas I have translated
> > the script into python. It's attached to this email. For this script
> > to work, it must be executed as root.
> 
> Very nice.  Perhaps we should replace the implementation in the killer
> package with this one?  Perhaps add support for reporting which
> processes are killed to the user or syslog, to get more of the
> features of the old killer program.
> 

Sure, that's one of the needed things. Also, this should also be
"daemonized"

> >         if len(loggedusers) != 0:
> >             for user in loggedusers:
> >                 newID=commands.getoutput("getent passwd " + user + "|cut -f3 -d:")
> >                 uids[newID]=user
> 
> One report of failure with the killer package is when the LDAP server
> is overloaded and fail to return user information.  Could it be an
> idea to try several times to look up user information if getent fail
> to return any information?
> 

do you have any idea of a practical time interval to wait between
requests?


> Happy hacking,
> -- 
> Petter Reinholdtsen
> 
> 

Attachment: signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente


Reply to: