systemctl status dnsmasq

Jan 19, 2022 10:16

When:
dnsmasq[454824]: dnsmasq: cannot open log /var/log/dnsmasq.log: Permission denied

Do:
ausearch -c 'dnsmasq' --raw | audit2allow -M my-dnsmasq
semodule -X 300 -i my-dnsmasq.pp
systemctl start dnsmasq

● dnsmasq.service - DNS caching server.
Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2022-01-19 10:06:14 CST; 5min ago
Process: 454824 ExecStart=/usr/sbin/dnsmasq -k (code=exited, status=3)
Main PID: 454824 (code=exited, status=3)

Jan 19 10:06:14 bkpsrv systemd[1]: Started DNS caching server..
Jan 19 10:06:14 bkpsrv dnsmasq[454824]: dnsmasq: cannot open log /var/log/dnsmasq.log: Permission denied
Jan 19 10:06:14 bkpsrv dnsmasq[454824]: cannot open log /var/log/dnsmasq.log: Permission denied
Jan 19 10:06:14 bkpsrv dnsmasq[454824]: FAILED to start up
Jan 19 10:06:14 bkpsrv systemd[1]: dnsmasq.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED
Jan 19 10:06:14 bkpsrv systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
[root@bkpsrv log]# systemctl start dnsmasq
[root@bkpsrv log]# systemctl status dnsmasq
● dnsmasq.service - DNS caching server.
Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2022-01-19 10:12:14 CST; 1s ago
Main PID: 454964 (dnsmasq)
Memory: 916.0K
CGroup: /system.slice/dnsmasq.service
└─454964 /usr/sbin/dnsmasq -k

Jan 19 10:12:14 bkpsrv systemd[1]: Started DNS caching server..

linux, dns

Previous post Next post
Up