Bugzilla – Bug 10551
ntp: init fails if /var/chroot/ntp doesn't exist
Last modified: 2007-03-31 02:18:35 UTC
The ntp init script has "-i /var/chroot/ntp" in ARGS. This causes init to fail if there is no such directory.
This bug now exists in stable-rc, version 0.5
Well, if we indeed hardcode that into the init script, then the spell simply should create /var/chroot/ntp. Hm, or does this dir need to contain something? Well, ntpd wants to write to the driftfile... Could treeve enlighten us with his config for where this spell works? I just checked that I encountered this with my home ntp server and just commented out the user and jaildir part. I am not paranoid on ntp on this little home server... A hotfix for the spell is to change the opts line to ARGS="-p $PIDFILE " That way it does actually work! It may not be the most secure setup, but if the user wants chroot, we will have to setup it (or the spell) and configure the init script (we should add sysconfig option for chroot/jaildir and user). Hm, actually, I will do a commit now that does this since the init script cannot possibly work as it is and we should provide at least something that can work. Then one can re-add proper support for chroot as sysconfig option and/or the spell offering to create /var/chroot/ntp .
Actually, it's better to simply fix the spell by creating that /var/chroot/ntp: 74f37fef1dae9d27968d0944beb1f3a03580ea35 request for integration... and marking this bug as fixed
integrated.
closing fixed bugs