diff options
author | James Meyer <james.meyer@operamail.com> | 2009-04-10 16:44:42 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-04-10 16:44:42 (GMT) |
commit | 5e80643fcd0df6419f18bccba6594a251eb2d179 (patch) | |
tree | 02eba330ea85211042a4fa4fcb0c9147c77d3e8a /abs/core-testing/runit-scripts/runitscripts/services/ntpd/run | |
parent | 6a486a28262c43e8ae2c1a742b4ffd4b29eaf0d0 (diff) | |
download | linhes_pkgbuild-5e80643fcd0df6419f18bccba6594a251eb2d179.zip linhes_pkgbuild-5e80643fcd0df6419f18bccba6594a251eb2d179.tar.gz linhes_pkgbuild-5e80643fcd0df6419f18bccba6594a251eb2d179.tar.bz2 |
runit-scripts: added fbsplash-runit.sh and general cleanup to make text pretty
Diffstat (limited to 'abs/core-testing/runit-scripts/runitscripts/services/ntpd/run')
-rwxr-xr-x | abs/core-testing/runit-scripts/runitscripts/services/ntpd/run | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/abs/core-testing/runit-scripts/runitscripts/services/ntpd/run b/abs/core-testing/runit-scripts/runitscripts/services/ntpd/run index 65e551c..146c4e0 100755 --- a/abs/core-testing/runit-scripts/runitscripts/services/ntpd/run +++ b/abs/core-testing/runit-scripts/runitscripts/services/ntpd/run @@ -1,3 +1,10 @@ #!/bin/sh -/usr/bin/ntpdate pool.ntp.org -exec /usr/bin/ntpd -n -p /var/run/ntpd.pid +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions +stat_runit "Starting NTPD" +printhl " Fetching time" +msg=`/usr/bin/ntpdate pool.ntp.org ` +printhl " $msg" + +exec /usr/bin/ntpd -n -p /var/run/ntpd.pid 2>/dev/null |