Thanks for this feature, I'll wait for the next snapshot to test it out. BTW, the link to "opensmtpd-portable-latest.tar.gz" at the bottom of http://www.opensmtpd.org/portable.html page is wrong. It points out to "opensmtpd-201305241932p1.tar.gz" which is not the last version.
--- wbr, Denis. On Tue, Jun 11, 2013 at 8:29 PM, Gilles Chehade <[email protected]> wrote: > On Tue, Jun 11, 2013 at 06:32:26PM +0600, Denis Fateyev wrote: > > On Tue, Jun 11, 2013 at 6:18 PM, Gilles Chehade <[email protected]> > wrote: > > > > > On Tue, Jun 11, 2013 at 06:08:15PM +0600, Denis Fateyev wrote: > > > > > > > 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 > > > > > > > Maybe, but I'm inclined to consider it only as an addition to more > familiar > > approaches. PIDs are widely used almost everywhere. > > > > > > > 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. > > > > > > > I can understand, but on the other hand openssh which has the same > concept, > > implements it out of box. > > I think, opensmtpd should provide more specific functions for other > > unix-like systems to get more popular and reflect their infrastructure > > specialties. > > > > We have just merged pidfile support in master and portable, it will be > part of next snapshot and release. > > It has only been tested on OpenBSD and Linux, it would be nice if people > running other systems would give a try at our git code to see if it does > build for them. > > -- > Gilles Chehade > > https://www.poolp.org @poolpOrg >
