luci-app-sfe/luci-app-flowoffload: AdGuardHome: print log to syslog

This commit is contained in:
CN_SZTL 2019-12-14 21:23:50 +08:00
parent 6358cc0225
commit 808ddcea00
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
4 changed files with 4 additions and 4 deletions

View File

@ -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 &

View File

@ -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

View File

@ -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 &

View File

@ -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