From owner-freebsd-questions Wed Dec 1 3:32:42 1999 Delivered-To: freebsd-questions@freebsd.org Received: from kearneys.ca (cr1003527-a.rct1.bc.wave.home.com [24.113.36.145]) by hub.freebsd.org (Postfix) with SMTP id 9239415AE1 for ; Wed, 1 Dec 1999 03:32:05 -0800 (PST) (envelope-from brent@kearneys.ca) Received: (qmail 79543 invoked by uid 1000); 1 Dec 1999 11:33:32 -0000 Date: Wed, 1 Dec 1999 03:33:32 -0800 From: Brent Kearney To: polarbear@asiamail.com Cc: questions@freebsd.org Subject: Re: Starting Qmail As Background Process Message-ID: <19991201033332.A79466@kearneys.ca> References: <19991130142224.3021.cpmta@c003.sfo.cp.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" X-Mailer: Mutt 1.0i In-Reply-To: <19991130142224.3021.cpmta@c003.sfo.cp.net>; from polarbear@asiamail.com on Tue, Nov 30, 1999 at 06:22:24AM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable On Tue, Nov 30, 1999 at 06:22:24AM -0800, polarbear@asiamail.com wrote: > I have the following in my /etc/rc.local file, >=20 > I will appreciate it very much if someone can enlighten me on how to modi= fy the commands above so that they will stay as background executing proces= ses. >=20 Here's my qmail.sh, from /usr/local/etc/rc.d/. If you have non-standard services to run, you should start them via shell scripts in this directory. You may have to modify this to suit your system... -Brent ------ #!/bin/sh # file: /usr/local/etc/rc.d/qmail.sh # # Starts qmail using tcpserver, instead of inetd #=20 # -brent@kearneys.ca, May 4, 1999 # Start the qmail daemon: if [ -x /usr/local/bin/tcpserver ]; then if [ -x /var/qmail/bin/qmail-smtpd ]; then /usr/local/bin/tcpserver -v -x /etc/tcp.smtp.cdb -u 82 -g 81 0 \ smtp /var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger \ smtpd 3 &=20 echo "Starting qmaild..." echo else echo "qmail-smtpd not found." echo fi else echo "tcpserver not found." echo fi # Launch the defacto qmail script, for everything else if [ -x /var/qmail/rc ]; then /bin/sh -cf '/var/qmail/rc &' else echo "/var/qmail/rc not found or not executable" echo fi --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: lYOYIVFjkhb18EmUapd8LvrKKgPi1I7T iQA/AwUBOEUHi/5LgQMksPsjEQIpegCfePPm8Esm76Dw+wNMdSSzRK38jp8AoO/7 SVJlvvO3vIXdJqMM+xk15k8c =b8IZ -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message