Try to change function start() like this: start () { [ -f $LOGFILE ] && mv -f $LOGFILE $LOGFILE.bak echo -n $"Starting $prog: " # start daemon $GKEXE -c $GKCONFIG -o $LOGFILE -ttt > /var/log/gnugk/gk-2.0.3.start 2>&1 & # sleep 3 RETVAL=$? [ $RETVAL = 0 ] && touch $LOCKFILE && success echo return $RETVAL } And look messages in /var/log/gnugk/gk-2.0.3.start file. Igor. > Dear All, > > When the daemon starts, it marks OK. But when I check it by typing: > > # ls /var/run > > the gk.initd.redhat.PID is not there. > > When I start it manually by typing: > > # sh gk.initd.redhat start > > It start correctly and I can find the gk.initd.redhat.PID in the > /var/run directory. > > So, what's wrong? > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > List: Openh323gk-users@lists.sourceforge.net > Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549 > Homepage: http://www.gnugk.org/ ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ List: Openh323gk-users@lists.sourceforge.net Archive: http://sourceforge.net/mailarchive/forum.php?forum_id?49 Homepage: http://www.gnugk.org/