> > This starts tcpserver/pop3d, but how do I go about shutting it down cleanly?
>Anything nicer than a 'kill'?
>
> kill uses the ``SIGTERM'' by default, which politely asks the process
> to die after it has cleaned up.
>
> kill -KILL shoots the process without warning.
OK, kill (regular, not -9) is fine with me :)
Is there an easy (i.e. 'automatic') way of getting the PID of the tcpserver?
This is how I'm starting qmail-pop3d with tcpserver:
tcpserver -v -R 0 pop-3 /var/qmail/bin/qmail-popup makina.domena.com \
/usr/local/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 2>&1 | \
/var/qmail/bin/splogger pop3d &
Would this log the PID in some file so that I can do
kill `cat /path/to/pid/file` from the 'stop)' section of my 'boot script'
(/etc/rc.d/init.d/...) ?
Thanks,
Otis
______________________________________________
Get free e-mail at http://www.britannica.com