I have a systemd definition file installed, but systemd fails to use it. What might the trouble be, or how can I debug it?

ettin:~# ls -l /etc/systemd/system/efl_test_daemon.service 
-rwxr-xr-x 1 root root 145 Aug 18 13:11 /etc/systemd/system/efl_test_daemon.service
ettin:~# /bin/systemctl start efl_test_daemon.service
Failed to issue method call: Unit efl_test_daemon.service failed to load: No such file or directory.
  • 10
    You created a new service file. Did you run systemctl daemon-reload? – Michael Hampton Aug 18 '15 at 17:25
  • If you have done reload as mentioned above please provide output of systemctl list-units | grep test – Navern Aug 18 '15 at 19:06
  • @MichaelHampton Thanks, I have been looking for this solution for 3 hours! – maxdaniel98 Mar 6 '16 at 11:39

Just like Michael Hampton said in the question comment, you created a new service file and you need to run this:

systemctl daemon-reload

I'm posting the answer for easy access. If Michael posts his answer I will be happy to remove mine.

  • 1
    He just ignored us, so feel free to have some votes. I don't think we'll hear from him again. – Michael Hampton Dec 6 '16 at 8:06

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.