Mailinglist Archive: opensuse (1239 mails)

< Previous Next >
Re: [opensuse] Systemd says: systemd-modules-load.service failed
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Sun, 16 Jun 2013 23:21:22 +0200 (CEST)
  • Message-id: <alpine.LNX.2.00.1306162222040.4047@Telcontar.valinor>

On Sunday, 2013-06-16 at 21:01 +0200, Carlos E. R. wrote:
On Sunday, 2013-06-16 at 14:38 -0400, Cristian Rodríguez wrote:

No, it just issues a warning. you can remove that file anyway, it is not the reason why the service ends with failure, just remove cryptoloop and twofish from MODULES_LOADED_ON_BOOT because they are already loaded.

Done. I'll see what happens on next boot.


Nope - same thing:


Telcontar login: root
Password:
Last login: Sun Jun 16 13:52:09 CEST 2013 on tty3
No mail.
Starting Console Manager...
Starting Authorization Manager...
[ OK ] Started Authorization Manager.
[ OK ] Started Console Manager.
Last login: Sun Jun 16 22:20:49 on tty1
Have a lot of fun...
Telcontar:~ # [ OK ] Started LSB: rpm config file scan.
[ OK ] Reached target Multi-User.
[FAILED] Failed to start Load Kernel Modules.
[FAILED] Failed to start LSB: Console mouse support.
[FAILED] Failed to start Daemonized version of spamassassin.
[FAILED] Failed to start Network Manager Wait Online.

Telcontar:~ #


But gpm is working:


Telcontar:~ # date;systemctl status gpm.service
Sun Jun 16 22:23:46 CEST 2013
gpm.service - LSB: Console mouse support
Loaded: loaded (/etc/init.d/gpm)
Active: active (running) since Sun, 2013-06-16 22:19:43 CEST; 4min 2s
ago
Process: 1321 ExecStart=/etc/init.d/gpm start (code=exited,
status=0/SUCCESS)
CGroup: name=systemd:/system/gpm.service
└ 1431 /usr/sbin/gpm -m /dev/psaux -t exps2

Jun 16 22:19:43 Telcontar.valinor systemd[1]: Starting LSB: Console mouse
support...
Jun 16 22:19:43 Telcontar.valinor /usr/sbin/gpm[1431]: *** info
[daemon/startup.c(136)]:
Jun 16 22:19:43 Telcontar.valinor /usr/sbin/gpm[1431]: Started gpm
successfully. Entered daemon mode.
Jun 16 22:19:43 Telcontar.valinor gpm[1321]: Starting console mouse support
(gpm)..done
Jun 16 22:19:43 Telcontar.valinor systemd[1]: Started LSB: Console mouse
support.
Telcontar:~ #


spamd is working:


Telcontar:~ # date;systemctl status spamd.service
Sun Jun 16 22:24:25 CEST 2013
spamd.service - Daemonized version of spamassassin
Loaded: loaded (/usr/lib/systemd/system/spamd.service; enabled)
Active: active (running) since Sun, 2013-06-16 22:20:05 CEST; 4min 20s ago
Process: 1434 ExecStart=/usr/sbin/spamd $SPAMD_ARGS -r /var/run/spamd.pid (code=exited, status=0/SUCCESS)
Process: 1361 ExecStartPre=/bin/echo Starting spamd: (code=exited, status=0/SUCCESS)
Main PID: 1987 (/usr/sbin/spamd)
CGroup: name=systemd:/system/spamd.service
├ 1987 /usr/sbin/spamd -d -c --max-children=6 -r /var/run/spamd.pid
├ 3731 spamd child
└ 3732 spamd child

Jun 16 22:20:03 Telcontar.valinor spamd[1987]: rules: meta test FROM_12LTRDOM
has dependency 'ALL_TRUSTED' with a zero score
Jun 16 22:20:03 Telcontar.valinor spamd[1987]: rules: meta test HDRS_LCASE has
dependency 'ALL_TRUSTED' with a zero score
Jun 16 22:20:03 Telcontar.valinor spamd[1987]: rules: meta test TBIRD_SPOOF has
dependency 'ALL_TRUSTED' with a zero score
Jun 16 22:20:05 Telcontar.valinor spamd[1987]: spamd: server started on port
783/tcp (running version 3.3.2)
Jun 16 22:20:05 Telcontar.valinor spamd[1987]: spamd: server pid: 1987
Jun 16 22:20:05 Telcontar.valinor spamd[1987]: spamd: server successfully
spawned child process, pid 3731
Jun 16 22:20:05 Telcontar.valinor spamd[1987]: spamd: server successfully
spawned child process, pid 3732
Jun 16 22:20:05 Telcontar.valinor spamd[1987]: prefork: child states: IS
Jun 16 22:20:05 Telcontar.valinor spamd[1987]: prefork: child states: II
Jun 16 22:20:05 Telcontar.valinor systemd[1]: Started Daemonized version of
spamassassin.
Telcontar:~ #


And network manager should already be disabled.

Of course, "systemctl --failed" outputs nothing. I could use that one if it did not pipe to less. Ah, ok, that's "systemctl --failed --no-pager".

So, I have now this:


+++.................................
#!/bin/bash
# -x
#
# Author: Carlos E. Robinson
#
# Supersedes /etc/init.d/helloworld
# called from /etc/systemd/system/helloworld.service

grep FAILED /var/log/boot.log
echo
echo "-----"
echo

systemctl --failed --no-pager
if [ $? -eq 0 ] ; then
cat /usr/share/sounds/au/hal9.au > /dev/audio 2> /dev/null &
/bin/logger -t Mine -p syslog.info "Saying hello world"
else
echo "Something failed"
/bin/logger -t Mine -p syslog.info "Something failed on boot."
fi
.................................++-



which prints:


+++.................................
Telcontar:~ # helloworld
[FAILED] Failed to start Load Kernel Modules.
[FAILED] Failed to start LSB: Console mouse support.
[FAILED] Failed to start Daemonized version of spamassassin.
[FAILED] Failed to start Network Manager Wait Online.

-----

0 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
Telcontar:~ #
.................................++-


Now I need a suitable sound file to play when something fails. The "Er... Houston, we have a problem" would be nice :-)

--
Cheers,
Carlos E. R.
(from 12.3 x86_64 "Dartmouth" at Telcontar)
< Previous Next >
Follow Ups