I have server with
debian 10
, previously on this server unbound service
installed.
Today I noticed that the service is reset every minute.
I even deleted the file /lib/systemd/system/unbound.service
and killed process manually
But again it runs automatically; I can not understand what process runs this service twice.
I have two problem:
#1
: how service start again automatically?
#2
: if service started, why reset again?
also I do not think the reset is due to the service itself.
unbound.service
Loaded: loaded (/etc/init.d/unbound; generated)
Active: active (running) since Sun 2022-05-01 14:57:25 +0430; 50s ago
Docs: man:systemd-sysv-generator(8)
Process: 24965 ExecStart=/etc/init.d/unbound start (code=exited, status=0/SUCCESS)
Main PID: 24985 (unbound)
Tasks: 8 (limit: 4915)
Memory: 14.3M
CGroup: /system.slice/unbound.service
24985 /usr/sbin/unbound
May 01 14:57:24 INF-dns-ntp02 systemd: Starting unbound.service...
May 01 14:57:24 INF-dns-ntp02 unbound-anchor: /var/lib/unbound/root.key has content
May 01 14:57:24 INF-dns-ntp02 unbound-anchor: success: the anchor is ok
May 01 14:57:25 INF-dns-ntp02 unbound: Starting DNS server: unbound.
May 01 14:57:25 INF-dns-ntp02 systemd: Started unbound.service.
**UPDATE**:list files
/etc/apparmor.d/local/usr.sbin.unbound
/etc/apparmor.d/usr.sbin.unbound
/etc/init.d/unbound
/etc/insserv.conf.d/unbound
/etc/resolvconf/update.d/unbound
/etc/systemd/system/multi-user.target.wants/unbound.service -> /lib/systemd/system/unbound.service
/etc/systemd/system/unbound.service.d
/etc/systemd/system/unbound.service.wants
/etc/systemd/system/unbound.service.wants/unbound-resolvconf.service -> /lib/systemd/system/unbound-resolvconf.service
/etc/unbound
/etc/unbound/unbound.conf
/etc/unbound/unbound.conf.bk
/etc/unbound/unbound.conf.d
/run/systemd/generator.late/graphical.target.wants/unbound.service -> ../unbound.service
/run/systemd/generator.late/multi-user.target.wants/unbound.service -> ../unbound.service
/run/systemd/generator.late/unbound.service
/run/systemd/units/invocation:unbound.service -> ff49954ca79b45bf851f4f6c9eb007da
/usr/lib/x86_64-linux-gnu/libunbound.so.8 -> libunbound.so.8.1.0
/usr/lib/x86_64-linux-gnu/libunbound.so.8.1.0
/usr/sbin/unbound
/usr/sbin/unbound-anchor
/usr/sbin/unbound-checkconf
/usr/sbin/unbound-control
/usr/sbin/unbound-control-setup
/usr/share/doc/libunbound8
/usr/share/doc/unbound
/usr/share/doc/unbound-anchor
**Update2:**
remove all /etc/rc*/[ks]unbound
unbound.service
Loaded: loaded (/etc/init.d/unbound; generated)
Active: active (running) since Sun 2022-05-01 18:22:25 +0430; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 4854 ExecStart=/etc/init.d/unbound start (code=exited, status=0/SUCCESS)
Main PID: 4873 (unbound)
Tasks: 8 (limit: 4915)
Memory: 13.6M
CGroup: /system.slice/unbound.service
4873 /usr/sbin/unbound
May 01 18:22:24 INF-dns-ntp02 systemd: Starting unbound.service...
May 01 18:22:25 INF-dns-ntp02 unbound-anchor: /var/lib/unbound/root.key has content
May 01 18:22:25 INF-dns-ntp02 unbound-anchor: success: the anchor is ok
May 01 18:22:25 INF-dns-ntp02 unbound: Starting DNS server: unbound.
May 01 18:22:25 INF-dns-ntp02 systemd: Started unbound.service.
kill Main PID: 4873 exec kill -9 4873
but unbound service starts again automatically ...
**Update3:** grep -r unbound /etc
output:
/etc/apparmor.d/usr.sbin.unbound:/usr/sbin/unbound flags=(attach_disconnected) {
/etc/apparmor.d/usr.sbin.unbound: /etc/unbound/** r,
/etc/apparmor.d/usr.sbin.unbound: owner /etc/unbound/*.key* rw,
/etc/apparmor.d/usr.sbin.unbound: audit deny /etc/unbound/unbound_control.{key,pem} rw,
/etc/apparmor.d/usr.sbin.unbound: audit deny /etc/unbound/unbound_server.key w,
/etc/apparmor.d/usr.sbin.unbound: /var/lib/unbound/** r,
/etc/apparmor.d/usr.sbin.unbound: owner /var/lib/unbound/** rw,
/etc/apparmor.d/usr.sbin.unbound: audit deny /var/lib/unbound/**/unbound_control.{key,pem} rw,
/etc/apparmor.d/usr.sbin.unbound: audit deny /var/lib/unbound/**/unbound_server.key w,
/etc/apparmor.d/usr.sbin.unbound: /usr/sbin/unbound mr,
/etc/apparmor.d/usr.sbin.unbound: /{,var/}run/{unbound/,}unbound.pid rw,
/etc/apparmor.d/usr.sbin.unbound: /{,var/}run/unbound.ctl rw,
/etc/apparmor.d/usr.sbin.unbound: #include
Asked by pyramid13
(639 rep)
May 1, 2022, 10:35 AM
Last activity: May 1, 2022, 06:51 PM
Last activity: May 1, 2022, 06:51 PM