Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (17 sloc) 524 Bytes
#!/bin/sh
export KSROOT=/koolshare
source $KSROOT/scripts/base.sh
eval $(dbus export koolclash_)
alias echo_date='echo 【$(date +%Y年%m月%d日\ %X)】:'
while [ "$koolclash_enable" == "1" ]; do
echo_date "开始检查进程状态..."
if [ ! -n "$(pidof clash)" ]; then
start-stop-daemon -S -q -b -m \
-p /tmp/run/koolclash.pid \
-x /koolshare/bin/clash \
-- -d $KSROOT/koolclash/config/
echo_date "重启 Clash 进程"
fi
sleep 15
continue
done
You can’t perform that action at this time.