linuxOS_AP05/device/rockchip/rk3308/dueros/watch_dueros_service.sh

13 lines
260 B
Bash
Raw Permalink Normal View History

2025-06-02 05:59:07 +00:00
#!/bin/sh
sleep 5
while true;do
pid_num=`pidof duer_linux alsa_audio_main_service | wc -w`
if [ $pid_num -lt 2 ] ;then
echo "duer_linux|alsa_audio_main_service died, restart it."
/oem/dueros_service.sh restart
fi
sleep 2
done