[svlug] Writing start-up scripts...

Todd Lyons todd at mrball.net
Tue Mar 13 07:29:01 PST 2001


Seth David Schoen wrote:

> > /etc/init.d/smtp - a hacked version of the Red Hat /etc/init.d/httpd bourne
> > shell script that calls the /var/qmail/rc script and reports back the
> > fancified status - will not start qmail in the background, though. It just
> > hangs after echoing "Starting qmail:".

Look at /etc/rc.d/init.d/functions.  Find where function daemon() is
defined.  Pay close attention to the actual execution of the command you
are trying to run.  Notice that it's piped through initlog.  You might
have to remove that.  To aid in dissecting it, insert a couple of echo
"part n"'s to see exactly how far it's getting into the script.
-- 
Blue skies...		Todd
| Get a bigger hammer!   |   Never mind me.  I'm speaking out of  |
| http://www.mrball.net  |   my /dev/ass anyway.                  |
| http://faq.mrball.net  |                        --Gash Teshome  |




More information about the svlug mailing list