smartdns icon indicating copy to clipboard operation
smartdns copied to clipboard

支持将日志打印到 stdout

Open poscat0x04 opened this issue 4 years ago • 3 comments

目前 smartdns 只支持将日志写到 log-file, 希望能支持将日志打印到 stdout, 这样用 systemd 运行 smartdns 时可以用 journald 查看和管理 smartdns 的日志

poscat0x04 avatar Aug 23 '21 09:08 poscat0x04

修改配置文件:/etc/default/smartdns如下 SMART_DNS_OPTS=“-f -x”

pymumu avatar Aug 23 '21 11:08 pymumu

修改配置文件:/etc/default/smartdns如下 SMART_DNS_OPTS=“-f -x” 将'/usr/sbin/smartdns' '-f' 修改为'/usr/sbin/smartdns' '-f -x' 报以下错误:

/usr/sbin/smartdns: invalid option -- ' '
/usr/sbin/smartdns: invalid option -- '-'

PikuZheng avatar Aug 28 '21 01:08 PikuZheng

添加-f参数后,systemd service 中需要修改 Type=simple

nuzar avatar Aug 25 '22 11:08 nuzar