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

Re: All services that require a restart from libc6 upgrade...



On Mon, Oct 16, 2000 at 06:39:02PM -0300, Nicolás Lichtmaier wrote:
> > Ok, I'm tired of having to track all services that might need to be
> > restarted after a libc6 upgrade. So here's what I am going to do. I want
> > to require all packages that need this to declare a new reply in it's init
> > script. It's very simple, I check your init script like this:
> 
>  Is it posible to detect if the service needs a restart by examining the
> executable file?
> 
>  E.g.:
> 	objdump -T $( readlink -f /proc/$PID/exe ) | egrep 'symbol1|symbol2'
> 
>  The processes to restart could be taken from ps AND /etc/init.d/*.

This only works under Linux (/proc usage).

Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org Check Key server 
Marcus Brinkmann              GNU    http://www.gnu.org    for public PGP Key 
Marcus.Brinkmann@ruhr-uni-bochum.de,     marcus@gnu.org    PGP Key ID 36E7CD09
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/       brinkmd@debian.org



Reply to: