Re: Ctrl-c abort of dhclient during rc.d start aborts all network configuration

From: Brooks Davis <brooks_at_one-eyed-alien.net>
Date: Wed, 31 Aug 2005 13:56:14 -0700
On Wed, Aug 31, 2005 at 04:26:17PM -0400, Charles Swiger wrote:
> On Aug 31, 2005, at 3:46 PM, Brooks Davis wrote:
> >>(2) If a dhclient is ctrl-c'd, it would be nice if the rest of the  
> >>network
> >>    configuration continued.
> >
> >I don't see any code in the startup scripts that would cause them to
> >exit on failure so the issue is probalby that the signal is being
> >delivered to the /etc/rc.d/netif instance.  I don't really know  
> >what the
> >solution to that is.
> 
> Add:
> 
>     trap "" 2 3
> 
> ...to the beginning of /etc/rc.d/netif, and a "trap 2 3" at the end,  
> so the shell ignores SIGQUIT (aka Control-C)?

Thanks, that reminded me where to looks.  I think I'll probably
/etc/rc.d/fsck's example and add:

	trap : 3

-- Brooks
Received on Wed Aug 31 2005 - 18:56:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:42 UTC