insserv: FATAL: service network has to be enabled to use service icinga


I’m trying to build a new Icinga package with all the goodies that follows with it. The standard RPM file we have was not appreciated by OBS, so I’ve written a new one. There are however an error in this regard that I’m now stuck on(in the cleanup process).

The error I get at the end:

Preparing packages for installation...
network: unknown service
insserv: FATAL: service network has to be enabled to use service icinga
insserv: exiting now!
/sbin/insserv failed, exit code 1
icinga                    0:off  1:off  2:off  3:on   4:on   5:on   6:off
ido2db                    0:off  1:off  2:on   3:on   4:on   5:on   6:off
... running 01-check-debuginfo
... testing for empty debuginfo packages
... running 02-check-gcc-output
... testing for serious compiler warnings
    (using /usr/lib/build/checks-data/check_gcc_output)
    (using //.build.log)
... running 03-check-binary-kernel-log
... running 05-check-invalid-requires
dependency check for icinga-gui-debuginfo-1.0.3-18.1.x86_64.rpm:
dependency check for icinga-debuginfo-1.0.3-18.1.x86_64.rpm:
dependency check for icinga-idoutils-debuginfo-1.0.3-18.1.x86_64.rpm:
dependency check for icinga-debugsource-1.0.3-18.1.x86_64.rpm:
... running 06-check-installtest
... testing for pre/postinstall scripts that are not idempotent
network: unknown service
postinstall script of icinga-1.0.3-18.1.x86_64.rpm failed
SysRq : Power Off
Power down.

The network at the first line is me trying to add in chkconfig network on, but its not recognized. How can I then satisfy this requirement?

Rune “TheFlyingCorpse” Darrud

My recently built package acupsd (to be found at has a similar requirement. Have a look at its specfile. I did not invent it, but copied from the previous version, and it works. It needs insserv too. Hopefully this may lead you on the right track.