[pkg-ntp-maintainers] Bug#635752: ntp: Please include systemd service file
Karl Schmidt
karl at xtronics.com
Fri Sep 4 04:23:19 UTC 2015
Please stay on the topic of this bug. ntp is not going away - can we please see this fix migrated
into testing?
I have tried the fix provided by Alexandre Detiste above and it appears to work(jessie).
/lib/systemd/system/ntp.service
-----------------
[Unit]
Description=Network Time Protocol daemon
After=network.target
[Service]
+ EnvironmentFile=-/etc/default/ntp
ExecStartPre=/usr/sbin/ntpconf
ExecStart=/usr/sbin/ntpd -n $NTPD_OPTS -u ntp:ntp -c /var/lib/ntp/ntp.conf
[Install]
WantedBy=multi-user.target
------------
The current package spews errors in the log -
>>> ERRORS <<<
Sep 3 21:41:28 malaysia ntpd_intres[2463]: host name not found: 0.debian.pool.ntp.org
Sep 3 21:41:28 malaysia ntpd_intres[2463]: host name not found: 1.debian.pool.ntp.org
Sep 3 21:41:28 malaysia ntpd_intres[2463]: host name not found: 2.debian.pool.ntp.org
Sep 3 21:41:28 malaysia ntpd_intres[2463]: host name not found: 3.debian.pool.ntp.org
>>> END ERRORS <<<<
The added ntp.service file apparently fixes it.
--------------------------------------------------------------------------------
Link to our website and get free US-48 shipping on your next order.
Karl Schmidt EMail Karl at xtronics.com
Transtronics, Inc. WEB https://secure.transtronics.com
3209 West 9th Street Ph (785) 841-3089
Lawrence, KS 66049 FAX (785) 841-3089
When angry, count to four; when very angry, swear. -- Mark Twain
--------------------------------------------------------------------------------
More information about the pkg-ntp-maintainers
mailing list