On Tue, Jun 11, 2013 at 06:08:15PM +0600, Denis Fateyev wrote:
> Hello Gilles,
> 

Hello,


> It's pretty useful for service's monitoring and management. For example, I
> could use process status checks in initialization scripts in more common
> way (``if [ -n "`pidfileofproc smtpd`" ] ; then ``) - things we've already
> got in openssh and other daemons.
>
> That would be good to have a smtpd command line option which sets a PID
> file, or alternatively hardcoded during configure & compile (like,
> "--with-pidfile=/var/run/smtpd.pid").
> 

Wouldn't a `smtpctl status` command (not implemented) achieve the same ?

          if `smtpctl status` >/dev/null; then
             echo "running"
          else
             echo "not running"
          fi

The problem with pidfile is that we don't do that on OpenBSD, and we try
to not diverge too much in the portable branch, unless there's no way to
achieve the same result in a generic way.

smtpctl is our smtpd control tool so this looks like something it should
handle itself. Also, it would be more reliable as it can talk to the
smtpd socket.


> P.S. I've been using opensmtpd for a week and am really impressed with its
> small memory footprint and performance.
> Keep up the good work!
> 

Thanks ;-)


-- 
Gilles Chehade

https://www.poolp.org                                          @poolpOrg

-- 
You received this email because you are subscribed to mailing list: 
[email protected]
To unsubscribe, send mail with subject:
        [[email protected]] unregister

Reply via email to