1

A service exists and succesfully found via status command

>sudo systemd status my-service
● my-service.service - My service description
   Loaded: loaded (/usr/lib/systemd/system/my-service.service; static; vendor preset: disabled)
   Active: inactive (dead)

however, just in next command:

>sudo systemctl start my-service
Failed to start my-service.service: Unit not found.

I have absolutely no idea where to look Nothing changed between commands, they give same result even if eexecuted together via bash-scripot or connected with ;

2
  • Check for the file mentioned, /usr/lib/systemd/system/my-service.service. Is it there? If it is, read it, it's a script, find what it does and how.
    – Krackout
    Nov 11, 2020 at 13:56
  • yeah, thanks. The service, that is required was not present.. But why doesn't it write, WHICH service not found?
    – TEXHIK
    Nov 19, 2020 at 14:21

0

You must log in to answer this question.

Browse other questions tagged .