Hi, I wrote up a mini-howto a long time ago, but it still is useful. There is a statup script near the bottom, and you should look at the svgroup script, which allows users of a given group to control the server, so root doesn't have to do it.
<http://rmadilo.com/files/aolserver-daemontools/daemontools-aolserver.html> To answer your question: you cannot use tcpserver to start AOLserver, it has its own daemon, and it simply cannot be replaced with tcpserver, which is designed to run non-daemon scripts/programs. The mini-howto is getting old. Now I use multilog to log output of AOLserver. The _HUGE_ advantage is that using multilog, you capture ALL output, so that when the server breaks, you can fix it without modifying startup (run) scripts. Essentially when the server fails to startup, errors generated to stdout (by tcl) get lost when you run in installed mode (-i option Bas spoke of). Using multilog, you can run AOLserver in foreground mode. Here are the details of the startup (run) script and AOLserver configuration: Script: #!/bin/bash sleep 4 export HOMEDIR=/web/rmadilo export PATH=$HOMEDIR/bin: $HOMEDIR/lib/tcl8.4/rmadilo/bin:/usr/local/bin:/usr/bin:/bin export LD_LIBRARY_PATH=/usr/local/pgsql/lib exec 2>&1 exec $HOMEDIR/bin/nsd -ft $HOMEDIR/rm.tcl -u tom -b 216.211.130.179:80 (Notes: 0. Linux doesn't have sh, use bash directly 1. in the script, stderr is redirected to stdout 2. This script is for postgres, Oracle is different 3. sleep 4 is needed to allow the os to release the port, don't know why 4. for ports below 1024, you need a bind argument listing the ip:port, you can use a bind file, one line per ip:port, by using -B bindfile.txt 5. Use -f for foreground mode when using multilog, or when debugging config script. 6. I believe AOLserver still uses the primary group of the user argument (-u) this means you cannot choose the group argument. To change the group under which AOLserver runs, change the primary group of the user. ) Config File Params: # Global Params: ns_section "ns/parameters" ns_param serverlog "/dev/fd/1" ;# redirect to sdtout multilog run script: #!/bin/bash # myservice/log/run exec /usr/local/bin/multilog s16777214 \ /web/rmadilo/servers/rmadilo/modules/nslog Notes: 0. log files are 16M long (s16...) 1. exec command is all on one line, or use \ to continue as above 2. log file directory is standard nslog directory. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
