Subject: Re: MacX, MI/X and XDM hack
To: David A. Gatwood <marsmail@globegate.utm.edu>
From: David Brownlee <abs@anim.dreamworks.com>
List: port-mac68k
Date: 07/26/1998 20:04:38
On Sun, 19 Jul 1998, David A. Gatwood wrote:
> On Sun, 19 Jul 1998, Bob Nestor wrote:
>
> > As I recall, the mac68k port of NetBSD still ships with "exec" disabled.
> > Check to see if it's commented out in /etc/inetd.conf. If it is
> > commented out, remove the "#" from the front of the line. Then locate
> > the inetd process (ps -aux | grep inetd) and send it a "kill -HUP <pid>"
> > where <pid> is it's process number. You could also just reboot your
> > system after the edit, although a real UNIX Guru would locate the process
> > and kill it all in one step using a combination of ps, grep, echo, awk
> > and half the strange keys on the keyboard.
>
> Nah. No need for awk, echo, sed, or even ps on this one, although the
> severely demented might get the pid from a ps -aux just for kicks. ;-)
>
> I'd say just use kill and cat. Something like:
>
> kill -HUP $(cat /var/run/inetd.pid)
>
>
NetBSD even ships with a helpful alias for this - 'hup',
or in this case 'hup inetd'. To work out which daemons this
will work for type 'ls /var/run/*.pid'.
I particularly like 'hup ppp0' :)
David/absolute
-=- They took away my irony, but they left my deceit -=-