Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Apr 2017 20:10:29 +0100
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        byrnejb@harte-lyne.ca
Cc:        "James B. Byrne via freebsd-questions" <freebsd-questions@freebsd.org>
Subject:   Re: Q. How to script a self checking starting rc.d script
Message-ID:  <20170412201029.48428d98b592b9f963b1423d@sohara.org>
In-Reply-To: <740265b61597d745421e95e190c659d8.squirrel@webmail.harte-lyne.ca>
References:  <740265b61597d745421e95e190c659d8.squirrel@webmail.harte-lyne.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 12 Apr 2017 14:25:36 -0400
"James B. Byrne via freebsd-questions" <freebsd-questions@freebsd.org>
wrote:

> We are moving from RHEL/CentOS Linux to FreeBSD.   On one of our Linux
> boxes we currently have an ssh pipe to a remote imap service.  This is
> a straight-forward ssh tunnel.  In the past there have been
> circumstances where this connection has failed.  In order to
> automatically re-establish the pipe I wrote an 'upstart' job to set up
> the pipe and automatically restart after a stoppage.
> 
> How is this sort of thing handled in FreeBSD?  Through cron monitoring?

	For this particular job I would suggest using autossh started in
rc.local or with a minimal rc script in /usr/local/etc/rc.d which you'd
have to write - personally I'd go with rc.local.

-- 
Steve O'Hara-Smith <steve@sohara.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170412201029.48428d98b592b9f963b1423d>