diff options
author | Aaron Ball <nullspoon@oper.io> | 2021-05-05 11:10:34 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2021-05-05 11:10:34 -0600 |
commit | bfbe663747e699d20c0e8ab2416adb62555c0c70 (patch) | |
tree | c020c4450ceda98c3b2706de68b457eca7b5fe9a /ntp | |
parent | 3ae8fcb23038fb51e6252cb5c7ec39117a88afd2 (diff) | |
download | ports-bfbe663747e699d20c0e8ab2416adb62555c0c70.tar.gz ports-bfbe663747e699d20c0e8ab2416adb62555c0c70.tar.xz |
ntpd:release 2 to fix init script
The init script tried to sync the clock on start, but if no networking
was present, it blocked the init process. This backgrounds the initial
sync, then sleeps 2, then continues the normal init process in the
background.
Diffstat (limited to 'ntp')
-rw-r--r-- | ntp/.md5sum | 2 | ||||
-rw-r--r-- | ntp/.signature | 6 | ||||
-rw-r--r-- | ntp/Pkgfile | 2 | ||||
-rw-r--r-- | ntp/ntpd.init | 3 |
4 files changed, 7 insertions, 6 deletions
diff --git a/ntp/.md5sum b/ntp/.md5sum index e7077b9..90496b3 100644 --- a/ntp/.md5sum +++ b/ntp/.md5sum @@ -1,3 +1,3 @@ e1e6b23d2fc75cced41801dbcd6c2561 ntp-4.2.8p15.tar.gz f4508f043342011b87e7cd753f16ef7a ntp.conf -71ef34df5b798a3009de492bea184ff9 ntpd.init +4f6f325d78677372a4810b95ff85b883 ntpd.init diff --git a/ntp/.signature b/ntp/.signature index d30e4a3..ffeeb9b 100644 --- a/ntp/.signature +++ b/ntp/.signature @@ -1,7 +1,7 @@ untrusted comment: verify with /etc/ports/nullspoon.pub -RWThnm0RuVZhZvI7ZdTVxAQHtrRHuKA9SeI1AdA7MoNOoQ+E5nQeGVTO6hZf7/cr60Re/GPngJ03c+L/Znau6yOYXjVGov54FQk= -SHA256 (Pkgfile) = 0ab8c4bfa72935f52e9345de70706534fd8094bd1188cdd650cfe58be2cd9ef6 +RWThnm0RuVZhZlKbaoY1ELEfuxQFq2gtMLiajsGtk1/nhF2dobPpthenPTRS5ZbGEfAmha6e47er7vXT4MIqImb/GLCtAEJGvAo= +SHA256 (Pkgfile) = a36a74bf7b616c58201e90b62c33443f12ff47c9975aa4afbd3a2eeaefa45b02 SHA256 (.footprint) = c26c6ac1f46ac4472a9ccfc8deecb997ebc64105cbcd4e05b6063981619dd3b2 SHA256 (ntp-4.2.8p15.tar.gz) = f65840deab68614d5d7ceb2d0bb9304ff70dcdedd09abb79754a87536b849c19 -SHA256 (ntpd.init) = b30125ac9f0f3cfdac115ab0952651d2acac536036a20736859faadf8db0c595 +SHA256 (ntpd.init) = 5aeea26de72c5e25d2e55e70ffdcfeb3645e6422cac5fb905fa72cd5f5927133 SHA256 (ntp.conf) = a2fd25e3d77291a4f4a16b60ab11ac4a2f1260caa865094ff5ca18805de17cfb diff --git a/ntp/Pkgfile b/ntp/Pkgfile index 8670047..fdeb6ff 100644 --- a/ntp/Pkgfile +++ b/ntp/Pkgfile @@ -5,7 +5,7 @@ name=ntp version=4.2.8p15 -release=1 +release=2 source=( https://www.eecis.udel.edu/~ntp/ntp_spool/ntp${version%%.*}/ntp-${version%.*}/ntp-${version}.tar.gz ntpd.init diff --git a/ntp/ntpd.init b/ntp/ntpd.init index 8bbd703..3718dba 100644 --- a/ntp/ntpd.init +++ b/ntp/ntpd.init @@ -9,7 +9,8 @@ PID=/var/run/ntpd.pid case $1 in start) - ${PROG} -gqx + ${PROG} -gqx & + sleep 2 ${SSD} --start --exec ${PROG} -- -p ${PID} ;; stop) |