Forum OpenACS Q&A: Response to restart-aolserver doesn't work

Collapse
Posted by Jun Yamog on
Hi Cristian,

You may modify your init.d/postgres scripts try this one out.  It may not be exactly what you have since mine is modified.  Use postmaster -o and put in single quotes the options you want it to run.  In my case I use "-B 2000 -o -S2000 -i"

Here is what I have:

su -l postgres -s /bin/sh -c "LC_ALL=C ${PGHOME}/bin/pg_ctl  -D $PGDATA -p ${PGHOME}/bin/postmaster -o '-B 2000 -o -S2000 -i' start  > /dev/null 2>&1" < /dev/null

Look around the for postmaster it should be around the start case of the shell script.  If you need further help just email me.  You may even email me your init.d/postgres

I use daemon tools to start stop and restart my services like aolserver.  Take a look at it on http://cr.yp.to/daemontools.html.  Its not very friendly but once you get the hang of it you will want all your unix services being supervised by it.  Plus in a multi developer environment I can assign who can start and restart which aolserver.  Normally I run about a dozen aolserver on a single machine so daemontools helps a lot.