luci-app-sfe/luci-app-flowoffload: AdGuardHome: print log to syslog
This commit is contained in:
parent
6358cc0225
commit
808ddcea00
@ -238,7 +238,7 @@ start_service(){
|
||||
elif [ $dnscache_enable = "2" ]; then
|
||||
start_dnsforwarder
|
||||
elif [ $dnscache_enable = "3" ]; then
|
||||
AdGuardHome -c /etc/AdGuardHome/AdGuardHome.yaml -w /etc/AdGuardHome -h ${lan_addr} -p 3001 >/dev/null 2>&1 &
|
||||
AdGuardHome -c /etc/AdGuardHome/AdGuardHome.yaml -w /etc/AdGuardHome -h ${lan_addr} -p 3001 2>&1 &
|
||||
fi
|
||||
change_dns
|
||||
nohup /usr/share/dnscache/dnscache-while.sh > /var/log/dnscache.file 2>&1 &
|
||||
|
||||
@ -28,7 +28,7 @@ echo "$curtime online! "
|
||||
if [ $dns_enable -eq 1 ]; then
|
||||
if [ $dnscache_enable = "3" ];then
|
||||
if ! pidof AdGuardHome>/dev/null;then
|
||||
AdGuardHome -c /etc/AdGuardHome/AdGuardHome.yaml -w /etc/AdGuardHome >/dev/null 2>&1 &
|
||||
AdGuardHome -c /etc/AdGuardHome/AdGuardHome.yaml -w /etc/AdGuardHome 2>&1 &
|
||||
echo "$curtime 重启服务!" >> ${logfile}
|
||||
fi
|
||||
else
|
||||
|
||||
@ -259,7 +259,7 @@ start_service() {
|
||||
elif [ $dnscache_enable = "2" ]; then
|
||||
start_dnsforwarder
|
||||
elif [ $dnscache_enable = "3" ]; then
|
||||
AdGuardHome -c /etc/AdGuardHome/AdGuardHome.yaml -w /etc/AdGuardHome >/dev/null 2>&1 &
|
||||
AdGuardHome -c /etc/AdGuardHome/AdGuardHome.yaml -w /etc/AdGuardHome 2>&1 &
|
||||
fi
|
||||
change_dns
|
||||
nohup /usr/share/dnscache/dnscache-while.sh > /var/log/dnscache.file 2>&1 &
|
||||
|
||||
@ -29,7 +29,7 @@ echo "$curtime online! "
|
||||
if [ $dns_enable -eq 1 ]; then
|
||||
if [ $dnscache_enable = "3" ]; then
|
||||
if ! pidof AdGuardHome>/dev/null; then
|
||||
AdGuardHome -c /etc/AdGuardHome/AdGuardHome.yaml -w /etc/AdGuardHome >/dev/null 2>&1 &
|
||||
AdGuardHome -c /etc/AdGuardHome/AdGuardHome.yaml -w /etc/AdGuardHome 2>&1 &
|
||||
echo "$curtime 重启服务!" >> ${logfile}
|
||||
fi
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user