supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Hardik Dalwadi <hardik@deeproot.co.in>
Cc: supervision@list.skarnet.org
Subject: Re: sample runit script for qmail-smtpd ?
Date: Thu, 17 Nov 2005 10:02:32 +0530	[thread overview]
Message-ID: <437C07E0.5030706@deeproot.co.in> (raw)
In-Reply-To: <05E8D34C-844C-4E35-B80A-20138DB66AF8@surgeradio.co.uk>

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 <http://smarden.org/ipsvd/examples.html>
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 <http://smarden.org/runit> 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.


      parent reply	other threads:[~2005-11-17  4:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-17  1:52 Nicholas J Humfrey
2005-11-17  2:15 ` Charlie Brady
2005-11-17  4:32 ` Hardik Dalwadi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=437C07E0.5030706@deeproot.co.in \
    --to=hardik@deeproot.co.in \
    --cc=supervision@list.skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).