Please Help - When used command "systemctl stop abrtd", I sought message "active: failed" on "systemctl status abrtd"
*Issue
I don't want to use abrtd , because abrtd's logs used /var's size
so, I was as bellow
- systemctl stop abrtd
- systemctl status abrtd
But,when I used "systemctl status abrtd", I sought message "active: failed"
[root@localhost ~]# systemctl status abrtd
● abrtd.service - ABRT Automated Bug Reporting Tool
Loaded: loaded (/usr/lib/systemd/system/abrtd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2017-06-30 10:13:44 KST; 57s ago
Process: 2867 ExecStart=/usr/sbin/abrtd -d -s (code=exited, status=1/FAILURE)
Main PID: 2867 (code=exited, status=1/FAILURE)
Jun 30 10:13:44 localhost abrt-server[45900]: Lock file '.lock' is locked by process 44866
Jun 30 10:13:44 localhost abrt-server[43366]: Lock file '.lock' is locked by process 44866
Jun 30 10:13:44 localhost abrt-server[48952]: Lock file '.lock' is locked by process 44866
Jun 30 10:13:44 localhost abrt-server[46391]: Lock file '.lock' is locked by process 44866
Jun 30 10:13:44 localhost systemd[1]: Stopping ABRT Automated Bug Reporting Tool...
Jun 30 10:13:44 localhost abrtd[2867]: Exiting
Jun 30 10:13:44 localhost systemd[1]: abrtd.service: main process exited, code=exited, status=1/FAILURE
Jun 30 10:13:44 localhost systemd[1]: Stopped ABRT Automated Bug Reporting Tool.
Jun 30 10:13:44 localhost systemd[1]: Unit abrtd.service entered failed state.
Jun 30 10:13:44 localhost systemd[1]: abrtd.service failed
*My opinion
While abrtd was creating a "ccpp- * file" in "/var/spool/abrt/", abrtd was stopped(systemctl stop abrtd)
and a crash occurred.
Therefore, failed.
*Request
1. What caused the problem?
2. Currently Active: Failed. How can I make "Active: inactive (dead)"?
Responses
To the original poster's requests: 1. ) What caused the problem? It is hard to say without knowing more about the situation, but the log lines in the "systemctl status abrtd" command output would seem to indicate that there was a process with PID 44866 that was holding a lock file that prevented abrtd from doing something it would have wanted to do before stopping. If PID 44866 still exists, the next step would be to investigate what it is, e.g. by commands like
# ps -fp 44866
# lsof -p 44866 |more
2.) Currently Active: Failed. How can I make "Active: inactive (dead)"? This is systemd's way of saying "the process is now inactive(dead) and it returned an error code when it stopped". Since you don't want to use abrtd, the error code is probably not important for you. But if you want to clear the error state information without restarting abrtd (perhaps to stop some monitoring system from reporting the failure of abrtd as an error?), you could use this command:
# systemctl reset-failed abrtd
Otherwise, if a similar situation happens with a service you actually want to keep using, you could just restart the service with "systemctl start ". That would also cause the Active: state to be updated.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
