Skip to content

Ubuntu doesn't have /usr/lib/systemd/system/ #5

Description

@Molinko88

Upon installing this lovely addition and after running it with the --install flag it presents the following error: cp: cannot create regular file '/usr/lib/systemd/system/my_service.service': No such file or directory.

I'd suggest using sudo systemctl link /path/to/my_service.service. This would solve two potential issues. The first I already mentioned, the second being that services need to be set to executable. The way systemd.lua is now it just copies the file to a possibly non existent/incompatible folder and then you have to navigate to it to make it executable. By linking it with systemctl link its placed appropriately in the system and the link will point to the local file where we can set it with chmod +x my_service.service. Whatcha think?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions