lapis-systemd
lapis-systemd copied to clipboard
Ubuntu doesn't have /usr/lib/systemd/system/
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?
I wasn't aware of this command, I think this would be a good change to make