You should be able to simply KILL the AOLserver PID. There are a number of ways you can find the PID:
1. Configure the AOLserver to write out the PID to a file:
ns_section "ns/parameters" ns_param pidfile /tmp/${servername}.pid
By default a PID file is generated as log/nspid.<servername>.
2. Grab the PID from a running process:
ps -ef | grep nsd shmooved 19894 1 0 Mar16 ? 00:00:00 /usr/local/aolserver/bin/nsd -it
3. Grab the PID from the server log:
tail -5 /usr/local/aolserver/log/server.log [16/Mar/2003:21:40:28][19894.32773][-driver-] Notice: driver: accepting connections [16/Mar/2003:21:40:28][19894.16387][-socks-] Notice: socks: starting ...
[DATE][PID][TID]...
Then simply use KILL from the command line:
kill 19894
or
kill `cat /usr/local/aolserver/log/nspid.server1`
Or alternately, you can use the ns_shutdown command from the control port. When the server receives the signal, it will attempt a graceful shutdown, so it may take a few seconds.
Hope this helps!
- Nathan
On Monday, March 17, 2003, at 08:57 AM, Jean-Fabrice RABAUTE wrote:
Hi all,
I can't find how to stop the nsd process for the version 4.0 (4.0 beta3). In the 3.x series, I was using the -K flag on the command line to stop the server.
Is there a new way to shutdown aolserver v4.0 ?
Thanks.
-- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/