gil...@poolp.org (Gilles Chehade), 2016.05.05 (Thu) 16:51 (CEST):
> On Thu, May 05, 2016 at 11:42:44AM -0300, Mariano Baragiola wrote:
> > On 05/05/16 10:59, Edgar Pettijohn wrote:
> > >How is it activated to do so?
> > 
> > I mean it autostarts when I reboot the VPS.
> > I did it with rcctl enable smtpd.
> > Shouldn't by this autostart when it crashes?
> 
> No it shouldn't autostart when it crashes.
> It shouldn't crash either.
> 
> Can you provide more details ?
> logs before the crash ?

in the meantime you could have a line like this in root's crontab(1) 

*/5 * * * * rcctl ls failed | xargs -r -L1 rcctl restart

or, for older versions of OpenBSD:

*/5 * * * * cd /var/run/rc.d; for dmn in *; do /etc/rc.d/${dmn} check \
  > /dev/null || /etc/rc.d/${dmn} restart; done

While this one is well testet, the first one is not. As always with
"*/X" cron(8) jobs, be sure they are quicker than their repeat rate (X).

Bye, Marcus

> !DSPAM:572b5dc9141209880215823!

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org

Reply via email to