From owner-freebsd-questions@freebsd.org Fri Sep 28 14:03:05 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5995A10B1955 for ; Fri, 28 Sep 2018 14:03:05 +0000 (UTC) (envelope-from phascolarctos@protonmail.ch) Received: from mail-40132.protonmail.ch (mail-40132.protonmail.ch [185.70.40.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.protonmail.ch", Issuer "QuoVadis Global SSL ICA G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E6A6D74660 for ; Fri, 28 Sep 2018 14:03:04 +0000 (UTC) (envelope-from phascolarctos@protonmail.ch) Date: Fri, 28 Sep 2018 14:02:54 +0000 To: FreeBSD Questions From: Lorenzo Salvadore Reply-To: Lorenzo Salvadore Subject: Re: Starting ntpd in a jail Message-ID: In-Reply-To: <8a138f2e-11d4-d890-c28d-72717a9eed3a@netfence.it> References: <8a138f2e-11d4-d890-c28d-72717a9eed3a@netfence.it> Feedback-ID: X6az_D2smWSR8MT5MHqXnWF0upxehDyHia7Id1cbayHNBUkRu3CIeusDsZHiivIIjmaKB1_OofpALrRUYjNz3w==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.1 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.protonmail.ch X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Sep 2018 14:03:05 -0000 > 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.