Problem: Lots of "insserv: warning" When Using systemctl

Problem

When you perform a systemctl command (ie start, stop) you get lots of messages like this:

root@ucs:/# systemctl disable ntp
ntp.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable ntp
insserv: warning: script 'K01univention-system-setup-boot' missing LSB tags and overrides
insserv: script bind9.debian: service bind9 already provided!
insserv: script isc-dhcp-server.debian: service isc-dhcp-server already provided!
insserv: script quotarpc.debian: service quotarpc already provided!
insserv: script rpcbind.debian: service rpcbind already provided!
insserv: script slapd.debian: service slapd already provided!
insserv: script nscd.debian: service nscd already provided!
insserv: script networking.debian: service networking already provided!
insserv: script networking.debian: service ifupdown already provided!
insserv: script nagios-nrpe-server.debian: service nagios-nrpe-server already provided!
insserv: warning: script 'univention-system-setup-boot' missing LSB tags and overrides
insserv: script postfix.debian: service postfix already provided!
insserv: script postfix.debian: service mail-transport-agent already provided!

Solution

There are remaining script files for SysV-init from previous upgrades which are obsolete with systemd used in UCS 4.2. These files can safely be removed with the following command:

find /etc/init.d -name "*.debian" -exec rm -f {} \;

Mastodon