summaryrefslogtreecommitdiff
path: root/custom/overlay/etc
diff options
context:
space:
mode:
Diffstat (limited to 'custom/overlay/etc')
-rwxr-xr-xcustom/overlay/etc/init.d/S48sntp4
1 files changed, 3 insertions, 1 deletions
diff --git a/custom/overlay/etc/init.d/S48sntp b/custom/overlay/etc/init.d/S48sntp
index 2d6f0d7..07e913d 100755
--- a/custom/overlay/etc/init.d/S48sntp
+++ b/custom/overlay/etc/init.d/S48sntp
@@ -24,7 +24,9 @@ start() {
# Create key cache file to prevents warning that file is missing
touch $SNTP_KEY_CACHE
# shellcheck disable=SC2086 # we need the word splitting
- (sleep 10; /usr/bin/$DAEMON $SNTP_ARGS -K $SNTP_KEY_CACHE $SNTP_SERVERS) &
+ # quiet, background, makepid, start, pidfile, execute
+ start-stop-daemon -q -b -m -S -p /tmp/sntp.pid -x /bin/sh -- -c "sleep 10; /usr/bin/$DAEMON $SNTP_ARGS -K $SNTP_KEY_CACHE $SNTP_SERVERS"
+
# sntp behavior
# - Does not background
# - Does not infinitely block