Hi,
 
Here is my /etc/init.d/pound script. Add it in your /etc/init.d directory and add it to your chkconfig...
I think you'll have to change t to fit your need. For example, I compiled pound without log to file and I'm using cronolog to catch stdout and stderr and make a log rotation.
 
If you have any suggestion to make it better, please, tell me.
 
Best regards,
Patrice
 
==========================================================================================================================================

#! /bin/sh
 
# chkconfig: - 95 95
# description: pound
 
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 
POUND_HOME=/mnt/data/www/pound
NAME=pound
DESC="pound"
 
#Exit  immediately  if a simple command (see SHELL GRAMMAR above) exits with a non-zero status.
set -e
 
#Remove write permission for others
umask 002
 
case "$1" in
  start)
        echo -n "Starting $DESC: "
        $POUND_HOME/bin/pound -v -f $POUND_HOME/conf/pound.conf -p $POUND_HOME/pound.pid 2>&1 | /usr/local/sbin/cronolog -S $POUND_HOME/logs/pound.log "$POUND_HOME/logs/pound.%Y-%m-%d.txt" &
        echo "$NAME."
        ;;
  stop)
        echo -n "Stopping $DESC: "
        kill `cat $POUND_HOME/pound.pid`
        echo "$NAME."
        ;;
  restart)
        echo -n "Restarting $DESC: "
        kill `cat $POUND_HOME/pound.pid`
        sleep 1s
        $POUND_HOME/bin/pound -v -f $POUND_HOME/conf/pound.conf -p $POUND_HOME/pound.pid 2>&1 | /usr/local/sbin/cronolog -S $POUND_HOME/logs/pound.log "$POUND_HOME/logs/pound.%Y-%m-%d.txt" &
        echo "$NAME."
        ;;
  *)
        N=/etc/init.d/$NAME
        echo "Usage: $N {start|stop|restart}" >&2
        exit 1
        ;;
esac

==========================================================================================================================================
 
 
 
----- Original Message -----
From: "sipieter nicolas" <niko_2501@yahoo.co.jp>
To: <pound@apsis.ch>
Sent: Wednesday, September 28, 2005 7:50 AM
Subject: [Pound Mailing List] Re: run pound as a daemon

>
>
> hi there..
> i'm searching a way to run pound automaticaly on system
> boot. how could i do this?
> there's no entry in /etc/init.d/pound
> how can i setup pound to get started automaticaly each
> time the system reboot?
>
> thanks
>
>
> __________________________________
>  For All Sports Fans!
>  
http://pr.mail.yahoo.co.jp/yells/
>
>
> --
> To unsubscribe send an email with subject 'unsubscribe' to
pound@apsis.ch.
> Please contact
roseg@apsis.ch for questions.
>
http://192.168.1.2:8080/Apsis/pound/pound_list/archive/2005/2005-09/1127886619000
>