Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Sep 2018 14:02:54 +0000
From:      Lorenzo Salvadore <phascolarctos@protonmail.ch>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Starting ntpd in a jail
Message-ID:  <TrSP3YZF4e5ZkZHxwQSfaGbN-4Q0EJp0BmWBs_EOeP59WvyVBsUv2xjBTio7C6Mf-CrK-Yw6dSXd0BAQRQTR5kN_uxCbjGGPadevGNYYQA4=@protonmail.ch>
In-Reply-To: <8a138f2e-11d4-d890-c28d-72717a9eed3a@netfence.it>
References:  <8a138f2e-11d4-d890-c28d-72717a9eed3a@netfence.it>

next in thread | previous in thread | raw e-mail | index | archive | help
> Hello.
>
> I'm trying to run ntpd in a jail.
> Before someone points out it won't be able to set time, that's ok :) I
> just want other clients to be able to synchronize with it.
>
> I can manually "service ntpd start" and it will happily work, but it
> won't start at boot (or if I restart the jail).
>
> Running "rcorder /etc/rc.d/ntpd" gives the same result in the jail as in
> base (where ntpd starts correctly):
>
> > rcorder: file `/etc/rc.d/ntpd' is before unknown provision`LOGIN'
> > rcorder: requirement `devfs' in file`/etc/rc.d/ntpd' has no providers.
> > rcorder: requirement `FILESYSTEMS' in file`/etc/rc.d/ntpd' has no provi=
ders.
> > rcorder: requirement `ntpdate' in file`/etc/rc.d/ntpd' has no providers=
.
> > rcorder: requirement `DAEMON' in file`/etc/rc.d/ntpd' has no providers.
>
> Any hint?
>
> bye & Thanks
> av.

Please give details on your jail configuration: do you manage it by writing
directly into /etc/jail.conf? do you use some utility like ezjail?

If you use directly /etc/jail.conf (or the command line) I think adding som=
ething like
exec.start=3D"/bin/sh /etc/rc" and setting /etc/rc.conf properly (in your j=
ail)
should work.

Lorenzo Salvadore.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?TrSP3YZF4e5ZkZHxwQSfaGbN-4Q0EJp0BmWBs_EOeP59WvyVBsUv2xjBTio7C6Mf-CrK-Yw6dSXd0BAQRQTR5kN_uxCbjGGPadevGNYYQA4=>