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. --- wbr, Denis.
