From owner-freebsd-questions Fri Apr 5 18:33:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from russian-caravan.cloud9.net (russian-caravan.cloud9.net [168.100.1.4]) by hub.freebsd.org (Postfix) with ESMTP id B1BED37B417 for ; Fri, 5 Apr 2002 18:33:21 -0800 (PST) Received: from earl-grey.cloud9.net (earl-grey.cloud9.net [168.100.1.1]) by russian-caravan.cloud9.net (Postfix) with ESMTP id 3244A28BF9; Fri, 5 Apr 2002 21:33:21 -0500 (EST) Date: Fri, 5 Apr 2002 21:33:21 -0500 (EST) From: Peter Leftwich X-X-Sender: To: Gerard Samuel Cc: FreeBSD Questions Subject: Re: qmail.sh startup?? In-Reply-To: <3CAE575A.9080708@trini0.org> Message-ID: <20020405212933.V64415-100000@earl-grey.cloud9.net> Organization: Video2Video Services - http://Www.Video2Video.Com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 5 Apr 2002, Gerard Samuel wrote: > Hey all. I had to reboot my box today, and during boot up, it would stop after it started apache and mysql, and I would have to control-C to get it going. Then I noticed that I couldn't send any mail. I started the qmail start up script by hand and its cool now. Everything looks ok with it. What could be causing it to not start during bootup?? Thanks I know the feeling, Gerard! :) What I noticed was if my internet connection was not physically powered on, certain things would hang at startup (such as dhclient, sendmail) and I would C-c to get past them. > lrwxr-xr-x 1 root wheel 13 Mar 23 15:40 qmail.sh -> /var/qmail/rc > -r-xr-xr-x 1 root qmail 439 Mar 28 15:07 rc What you may wish to do is move the qmail.sh (is that a link or an actual text file, it isn't clear?) to /usr/local/etc/rc.d/qmail.sh - make sure you chmod it to 644 or executable... That way, it will get sourced at startup, or you can just put a line at the end of your /etc/rc.conf file such as this: /bin/sh /path/to/your/qmail.sh Best wishes, > #!/bin/sh > > # Using splogger to send the log through syslog. > # Using qmail-local to deliver messages to ~/Mailbox by default. > > case "$1" in > start) > exec env - PATH="/var/qmail/bin:$PATH" \ > qmail-start ./Mailbox splogger qmail& > /usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -HR -c 200 0 smtp > /var/qmail/bin/qmail-smtpd > exit 0 > ;; > stop) > exec killall qmail-send > ;; > *) > echo "Usage: `basename $0` {start|stop}" >&2 > exit 64 > ;; > esac -- Peter Leftwich President & Founder Video2Video Services Box 13692, La Jolla, CA, 92039 USA +1-413-403-9555 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message