From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/906 Path: news.gmane.org!not-for-mail From: Hardik Dalwadi Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: sample runit script for qmail-smtpd ? Date: Thu, 17 Nov 2005 10:02:32 +0530 Organization: DeepRoot Linux Pvt. Ltd. Message-ID: <437C07E0.5030706@deeproot.co.in> References: <05E8D34C-844C-4E35-B80A-20138DB66AF8@surgeradio.co.uk> Reply-To: Hardik Dalwadi NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1132201976 7256 80.91.229.2 (17 Nov 2005 04:32:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 17 Nov 2005 04:32:56 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-1142-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Nov 17 05:32:45 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1EcbRo-0004io-PZ for gcsg-supervision@gmane.org; Thu, 17 Nov 2005 05:32:32 +0100 Original-Received: (qmail 6609 invoked by uid 76); 17 Nov 2005 04:32:53 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 6603 invoked from network); 17 Nov 2005 04:32:53 -0000 X-Spam-Status: No, hits=-2.7 required=4.0 X-Spam-Report: SA TESTS -2.8 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.1 TW_UQ BODY: Odd Letter Triples with UQ 0.1 TW_VV BODY: Odd Letter Triples with VV X-deepOfix-Mail-Filter-Mail-From: hardik@deeproot.co.in via anubhav X-deepOfix-Mail-Filter: 1.25st (Clear:RC:0(192.168.1.9):SA:0(-2.7/4.0):. Processed in 0.958301 secs Process 7596) User-Agent: Debian Thunderbird 1.0.6 (X11/20050802) X-Accept-Language: en-us, en Original-To: Nicholas J Humfrey In-Reply-To: <05E8D34C-844C-4E35-B80A-20138DB66AF8@surgeradio.co.uk> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:906 Archived-At: On Thursday 17 November 2005 07:22 AM, Nicholas J Humfrey wrote: > Hi, > > I have a standard qmail and runit install on Debian/sarge, but I want > to start qmail-send and qmail-smtpd using /var/service rather than the > /etc/init.d/qmail that debian comes with. > Does anybody have an example runit script for qmail-smtpd ? > I am quite surprised that I couldn't find one on google. Have you check According to that #!/bin/sh exec 2>&1 exec softlimit -m2000000 \ tcpsvd -vvh -i./peers -uqmaild \ -c40 -C'10:421 per host concurrency limit reached\r\n' \ 192.168.14.6 25 qmail-smtpd > I don't seem to have envuidgid or softlimit installed on my machine (I > believe they are in the daemontools package) but I would rather use > runit... Runit has the replacement of envuidgid and softlimit, That chpst command from runit package. Check or do mam chpst envuidgid = chpst -U user[:group] softlimit = chpst -mbytes So now your run script will be...... #!/bin/sh exec 2>&1 exec chpst -m3000000 \ tcpsvd -vvh -i./peers -uqmaild \ -c40 -C'10:421 per host concurrency limit reached\r\n' \ 192.168.14.6 25 qmail-smtpd >nick. With Cheers, Hardik Dalwadi.