Prev | Current Page 60 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

pid`
1.7.2.2 Kill and restart, very old versions
Under old versions of sendmail, you need to use the ps(1) program to find the pid of
the daemon. How you run ps is different on BSD Unix and System V Unix. For BSD
Unix the command you use and the output it produces resemble the following:
% ps ax | grep sendmail | grep -v grep
99 ? IW 0:07 /usr/lib/sendmail -bd -q1h
% kill -15 99
Here, the leftmost number printed by ps (the 99) was used to kill the daemon.
For System V-based systems you use different arguments for the ps command, and its
output differs:
% ps -ae | grep sendmail
99 ? 0:01 sendmail
% kill -15 99
Under old versions of sendmail, you must look in your system rc files for the way to
restart sendmail.
1.7.2.3 If you forget to kill the daemon
If you forget to kill the daemon before starting a new one, you might see a stream of
messages similar to the following, one printed every five seconds (probably to your
console window):
...
getrequests: cannot bind: Address already in use
getrequests: cannot bind: Address already in use
getrequests: cannot bind: Address already in use
getrequests: cannot bind: Address already in use
getrequests: cannot bind: Address already in use
getrequests: cannot bind: Address already in use
opendaemonsocket: server SMTP socket wedged: exiting
This shows that the attempt to run a second daemon failed.


Pages:
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
pustaki szklane House Extension Kąty Rybackie noclegi kasyno Kołobrzeg