[svlug] Writing start-up scripts...

Seth David Schoen schoen at loyalty.org
Mon Mar 12 17:04:02 PST 2001

Eric Pretorious writes:

> I knew that if I included the `csh -cf '/var/qmail/rc'` test statement it 
> might derail the entire thread... and it did. Having said that, let me 
> restate the problem:
> Both /var/qmail/rc & /etc/init.d/smtp are bourne shell shell scripts.
> /var/qmail/rc works correctly - especially when executed with an ampersand 
> at the end.
> /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:".
> /etc/init.d/smtp will, however, correctly report the success/failure of an 
> order to stop qmail.
> What do I need to add-to/remove-from either of these scripts to make them 
> start qmail in the background and report back the status?
> Eric P.
> Thanks in advance, again!
> Los Gatos, CA
> >/var/qmail/rc
> >=============
> >#!/bin/sh
> >exec env - PATH="/var/qmail/bin:$PATH" \
> >qmail-start ./Mailbox splogger qmail

How about making this run qmail-start in the background?

qmail-start ./Mailbox splogger qmail &

You might want to do something about the output, if any.

Seth David Schoen <schoen at loyalty.org>  | And do not say, I will study when I
Temp.  http://www.loyalty.org/~schoen/  | have leisure; for perhaps you will
down:  http://www.loyalty.org/   (CAF)  | not have leisure.  -- Pirke Avot 2:5

More information about the svlug mailing list