ttys in jail

Kurt Jaeger lists at opsec.eu
Fri Oct 24 13:30:57 UTC 2014


Hi!

> In a non-jail FreeBSD instance I have a service I want supervised as an
> entry in /etc/ttys so whenever it dies it gets restarted.

This is a feature of the init process (man init).

In a jail you do not have an proper 'init' process, so this will not work.

> I am trying to do
> the same in a jail but after adding an entry to /etc/ttys and running init
> q, the service is not picked up.
> 
> I am naive on the implementation details of jails but is what I am trying
> to do possible? If so is it then a matter of appropriate settings?

It needs a different approach, for example have a look at

/usr/ports/sysutils/daemontools

-- 
pi at opsec.eu            +49 171 3101372                         6 years to go !


More information about the freebsd-jail mailing list