lapis-systemd icon indicating copy to clipboard operation
lapis-systemd copied to clipboard

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

Open Molinko88 opened this issue 6 years ago • 1 comments

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?

Molinko88 avatar Mar 05 '19 04:03 Molinko88

I wasn't aware of this command, I think this would be a good change to make

leafo avatar Mar 05 '19 04:03 leafo