A
A
Alexander Semenenko2020-04-16 11:46:21
linux
Alexander Semenenko, 2020-04-16 11:46:21

Why was the systemd service not removed, and how to completely remove it?

I created a service, checked how it works: it starts, stops, is added to startup, and the like. Then I just deleted the file from /etc/systemd/system/ with my service file. Executed systemctl daemon-reload and forgot all about it. During this time, the server has already rebooted several times.

Now I had to check the list of services, I ran systemctl list-units -t service and saw this test service, which I thought I deleted:

● test.service       not-found failed failed  test.service


How to permanently remove it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Ananiev, 2020-04-16
@semenenko88

try systemctl reset-failed

D
Dr. Bacon, 2020-04-16
@bacon

did you do systemctl disable?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question