diff options
author | TJ Vanderpoel <tj@rubyists.com> | 2011-05-20 12:47:47 -0500 |
---|---|---|
committer | TJ Vanderpoel <tj@rubyists.com> | 2011-05-20 12:47:47 -0500 |
commit | fa4779411201a52e1080ac27ae011b1209b1a168 (patch) | |
tree | fcebf6a84879b1e1a4a37f5a403369a828fe699f | |
parent | 3ee2109303e269da240aa4d11c37345c067111c0 (diff) | |
download | runit-services-fa4779411201a52e1080ac27ae011b1209b1a168.zip runit-services-fa4779411201a52e1080ac27ae011b1209b1a168.tar.gz runit-services-fa4779411201a52e1080ac27ae011b1209b1a168.tar.bz2 |
added -e, a check for the conf file, and -n to the first set command
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | etc/sv/ntpd/run | 8 |
2 files changed, 6 insertions, 3 deletions
@@ -1,3 +1,4 @@ pkg/ src/ *.xz +*.gz diff --git a/etc/sv/ntpd/run b/etc/sv/ntpd/run index 6aac1fb..50b6cd2 100755 --- a/etc/sv/ntpd/run +++ b/etc/sv/ntpd/run @@ -1,4 +1,6 @@ -#!/bin/sh -source /etc/conf.d/ntp-client.conf -/usr/bin/ntpd -q $NTP_CLIENT_OPTION +#!/bin/sh -e +if [ -f /etc/conf.d/ntp-client.conf ];then + source /etc/conf.d/ntp-client.conf +fi +/usr/bin/ntpd -n -q $NTP_CLIENT_OPTION exec /usr/bin/ntpd $NTPD_ARGS -u ntp -n 2>&1 |