diff options
author | uvok cheetah | 2024-09-11 20:04:40 +0200 |
---|---|---|
committer | uvok cheetah | 2024-09-11 20:04:40 +0200 |
commit | 8e22c52ac413690a98ff30472b283538d376aa57 (patch) | |
tree | 6689ef6b98e7001bbc6522cb5ead473fe36c8f39 /custom | |
parent | 12383c3beddd20d0a3cb043ed79d64131404631c (diff) |
Use start-stop-daemon for sntp
Diffstat (limited to 'custom')
-rwxr-xr-x | custom/overlay/etc/init.d/S48sntp | 4 |
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 |