Cannot set config file in /etc/default/ntp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ntp (Debian) |
New
|
Unknown
|
|||
ntp (Ubuntu) |
Won't Fix
|
Wishlist
|
Christian Ehrhardt |
Bug Description
Description: Ubuntu 12.04 LTS
Release: 12.04
ntp:
Installed: 1:4.2.6.
Candidate: 1:4.2.6.
Version table:
*** 1:4.2.6.
500 http://
100 /var/lib/
1:
500 http://
f
I had a need to set a custom config file for ntp. I looked about and found that I could pass a '-c' option and that options for ntp are set in /etc/default/ntp in NTPD_OPTS. So I put it in there: NTPD_OPTS='-g -c /path/to/
After reading through the init script, I opted to add a new variable to /etc/default/ntp specifically for holding a custom config file. Attached is a patch that will use that value if DHCP has not created its own ntp.conf. If NTP settings were passed via DCHP, then those settings will override the custom config file.
Changed in ntp (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
Changed in ntp: | |
status: | Unknown → New |
Changed in ntp (Ubuntu): | |
assignee: | nobody → ChristianEhrhardt (paelzer) |
affects: | ntp → ubuntu |
Changed in ubuntu: | |
importance: | Unknown → Undecided |
no longer affects: | ubuntu |
Changed in ntp (Debian): | |
status: | Unknown → New |
The attachment "Patch for /etc/init.d/ntp" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.
[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]