Q. How to script a self checking starting rc.d script
Steve O'Hara-Smith
steve at sohara.org
Wed Apr 12 19:10:46 UTC 2017
On Wed, 12 Apr 2017 14:25:36 -0400
"James B. Byrne via freebsd-questions" <freebsd-questions at 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 at sohara.org>
More information about the freebsd-questions
mailing list