From 8e22c52ac413690a98ff30472b283538d376aa57 Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Wed, 11 Sep 2024 20:04:40 +0200 Subject: Use start-stop-daemon for sntp --- custom/overlay/etc/init.d/S48sntp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'custom/overlay') 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 -- cgit v1.2.3