forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-08-30 862c27fc9920c83318c784bfdadf43a65df1ec8f
1
2
3
4
5
6
7
8
9
10
11
12
#!/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