Ask Your Question
0

How to clear systemctl error message after yum erase?

asked 2013-06-09 12:28:03 -0500

Ken Stailey gravatar image

updated 2013-06-10 03:18:02 -0500

FranciscoD_ gravatar image

After using yum -y erase drbd-heartbeat-8.4.2-2.fc18.x86_64 drbd-bash-completion-8.4.2-2.fc18.x86_64 drbd-utils-8.4.2-2.fc18.x86_64 drbd-kernel-8.4.2-2.fc18.x86_64 drbd-udev-8.4.2-2.fc18.x86_64 drbd-8.4.2-2.fc18.x86_64 drbd-pacemaker-8.4.2-2.fc18.x86_64 drbd-xen-8.4.2-2.fc18.x86_64 running systemctl reports

$ systemctl status drbd.service
drbd.service
     Loaded: error (Reason: No such file or directory)
     Active: failed (Result: timeout) since Sun 2013-06-09 12:18:16 EDT; 1h 6min ago

Running sudo systemctl daemon-reload does not help. Update: running $ sudo systemctl daemon-reexec does not help.

What can I do to tell systemd not to expect drbd.service other than reboot?

edit retag flag offensive close merge delete

Comments

I'm not sure if I follow you. You uninstalled all drdb stuff and consequently the service is not running... that seems fine to me, what do you expect?

skytux gravatar imageskytux ( 2013-06-09 16:46:22 -0500 )edit

Back in the good old days of chkconfig --del I never saw error messages from chkconfig --list after a service was deleted. Now I get $ systemctl --full | grep drbd.service outputting drbd.service ... error failed failed drbd.service

Ken Stailey gravatar imageKen Stailey ( 2013-06-09 18:50:17 -0500 )edit

But the error is because you have uninstalled drbd!! That is what I'm trying to explain to you, or I missed something?

skytux gravatar imageskytux ( 2013-06-09 19:12:57 -0500 )edit

Read the original post above, especially the bottom line. That is the question. How have you answered it? You have not provided any procedures that would answer "how".

Ken Stailey gravatar imageKen Stailey ( 2013-06-09 21:18:44 -0500 )edit

OK @Ken Stailey, I just wanted to help you. Good luck!

skytux gravatar imageskytux ( 2013-06-09 21:32:48 -0500 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2013-06-10 03:11:06 -0500

lennart gravatar image

You can use "systemctl reset-failed" to allow systemd to gc failed unreferenced units.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-06-09 12:28:03 -0500

Seen: 2,977 times

Last updated: Jun 10 '13