Commit 37bb23a4 authored by Adam Wujek's avatar Adam Wujek

[BUG: #270] rootfs/etc/init.d/system_clock_monitor: Search for a ntpd only within childs

Don't kill other ntpd instances.
Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent 9f70d19b
......@@ -144,7 +144,9 @@ killNTPD ()
fi
(
sleep $delay
p=$(pidof $ntpTool)
ppid=$$
# Search for a ntpd only within this script's childs
p=$(pgrep -g $ppid $ntpTool)
if [[ -n "$p" ]] ; then
kill -9 $p &>/dev/null
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment