[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 04:23:43PM -0400, Ben Collins 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:
> 
> ----
> check=$(/etc/init.d/service nss-check 2>&1 || true)
> 
> if [ "$check" = "restart" ]; then
> 	# this service needs to be restarted
> 	...
> fi
> ----
> 
> So all you need is an extra option in your init script to handle this.
> Something like
> 
> case $1 in
> 	restart)
> 		...
> 		;;
> 	<other options>
> 
> 	nss-check)
> 		echo restart
> 		exit 0
> 		;;
> esac


Would it make more sense to have an option "nss-restart" and let the
script do the right thing?

Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         dan@debian.org         |  |       dmj+@andrew.cmu.edu      |
\--------------------------------/  \--------------------------------/



Reply to: