summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2013-12-09 20:36:38 +0000
committerWilliam Hubbs <williamh@gentoo.org>2013-12-09 20:36:38 +0000
commitd02eeceb62312e1d518439dd45c1050448842eb5 (patch)
tree732d24de190b834b8ebbec657657defeb96a169d /net-misc/ntp/files
parentVersion bump. Clean up ebuild and 9999 version. Switch live ebuild to 1.1 branch (diff)
downloadhistorical-d02eeceb62312e1d518439dd45c1050448842eb5.tar.gz
historical-d02eeceb62312e1d518439dd45c1050448842eb5.tar.bz2
historical-d02eeceb62312e1d518439dd45c1050448842eb5.zip
Add -g to ntpd's command line options. This came out of a discussion
with robbat2, dwfreed and steev on irc. This allows ntpd to set the clock when it starts without the use of ntpdate. If you keep this, you do not need to run the ntp-client service. Package-Manager: portage-2.2.7/cvs/Linux i686 Manifest-Sign-Key: 0x30C46538
Diffstat (limited to 'net-misc/ntp/files')
-rw-r--r--net-misc/ntp/files/ntpd.confd2
-rw-r--r--net-misc/ntp/files/ntpd.service-r12
2 files changed, 2 insertions, 2 deletions
diff --git a/net-misc/ntp/files/ntpd.confd b/net-misc/ntp/files/ntpd.confd
index c651e80dcc67..2b74282c5775 100644
--- a/net-misc/ntp/files/ntpd.confd
+++ b/net-misc/ntp/files/ntpd.confd
@@ -3,4 +3,4 @@
# Options to pass to the ntpd process
# Most people should leave this line alone ...
# however, if you know what you're doing, feel free to tweak
-NTPD_OPTS="-u ntp:ntp"
+NTPD_OPTS="-g -u ntp:ntp"
diff --git a/net-misc/ntp/files/ntpd.service-r1 b/net-misc/ntp/files/ntpd.service-r1
index 7d18d89ea548..0b6109037c42 100644
--- a/net-misc/ntp/files/ntpd.service-r1
+++ b/net-misc/ntp/files/ntpd.service-r1
@@ -3,7 +3,7 @@ Description=Network Time Service
After=ntpdate.service sntp.service
[Service]
-ExecStart=/usr/sbin/ntpd -n
+ExecStart=/usr/sbin/ntpd -g -n
PrivateTmp=true
[Install]