I have a fairly new server build and I'm trying to list all the services. Checking the status of any one works fine, but running service --status-all
gives the error:
netconsole module not loaded
Configured devices:
lo eno16777736
Currently active devices
lo eno16777736
I tried following this advice that says if you don't explicitly need netconsole, you should disable it. Which provides these instructions:
Output should indicate the "netconsole" service has either not been installed, or has been disabled at all runlevels, as shown in the example below:
chkconfig "netconsole" --list
netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off
- My output is
netconsole 0:off 1:off 2:on 3:on 4:on 5:on 6:off
- My output is
Run the following command to verify "netconsole" is disabled through current runtime configuration:
service netconsole status
. If the service is disabled the command will return the following output:netconsole is stopped
- However, my output is:
netconsole module not loaded
- However, my output is:
The "netconsole" service can be disabled with the following command:
chkconfig netconsole off
- This changes all the values in step 1 to "off", but this doesn't make a difference.
I also tried service netconsole stop
I tried manually loading/unloading the module.
modprobe netconsole
modprobe -r netconsole
I found a workaround, but I would still like to know how I can fix this.
This is due to the switch from init.d to systemd for system services. Check out /etc/init.d/README, which contains a little information about how to live in the new world but doesn't explicitly mention that the
service
command is now pretty much deprecated.