On Thu, 29 Oct 1998, Matthew N. Dodd wrote:
> On Thu, 29 Oct 1998, The Hermit Hacker wrote:
> > Solaris just doesn't have any mechanisms to work around the
> > limitation, I guess *shrug* It really sucks when you want to SIGHUP
> > the "parent process", which, under FreeBSD at least, is the one that
> > states: -accepting connections, but under Solaris they are *all* the
> > same :)
>
> $ ps -eaf
> UID PID PPID C STIME TTY TIME CMD
> root 0 0 0 Oct 12 ? 0:01 sched
> root 1 0 0 Oct 12 ? 0:15 /etc/init -
> ...
>
> You'll note the 'PPID' field.
>
> 3 guesses what that stands for.
Okay, now you risk getting on my bad side :) I know what PPID
stands for...now you tell me which of these processes to SIGHUP:
root 18942 22213 0 13:22:03 ? 0:00 /usr/local/sbin/sendmail root 18946 22213 0 13:22:03 ? 0:00
/usr/local/sbin/sendmail root 18948 1 0 13:22:04 ? 0:00 /usr/local/sbin/sendmail root 22213 1 0
Oct26 ? 1:40 /usr/local/sbin/sendmail
And ya, I know, the one with the older date...the point is that
you can't really automate this, except to do:
kill -HUP `ps -aef | grep sendmail | awk '{print $2}'`
And SIGHUP them all...