Skip to main content
Topic: Dinit: ly doesn't start, permission denied error (Read 121 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Dinit: ly doesn't start, permission denied error

Hey, everyone! I installed `ly-dinit`, but it doesn't start. The command `sudo dinitctl start ly` shows:

Quote
Service 'ly' failed to start.
Reason: execution of service process failed:
                 Stage: executing command
                 Error: Permission denied

Even if I run it from the Root user profile, it shows the same. The system reboot just throws me in a TTY session. The `sudo dinitctl enable ly` tells me that it's already enabled:

Quote
dinitctl: service already enabled.

Also, if I launch `ly` just from the console by running `ly-dm`, the display manager appears, but shows "failed to access console".

Maybe I do something wrong? How can I put it to work? Thanks for any help.

Re: Dinit: ly doesn't start, permission denied error

Reply #1
There's a relevant discussion here.

Basically, ly contains a dinit service file in its source tree, but has "$EXE" in place of the actual executable name ("ly-dm"). (I assume that as part of the build or install process it gets updated with the actual executable name but I haven't verified that).

Apparently for the Artix package, that service file was used verbatim without replacing "$EXE" by "ly-dm" (and apparently, without testing the result). See the repo (the ly file within).

To fix it, edit the /etc/dinit.d/ly file and change "command = $EXE" to "command = /usr/bin/ly-dm". And read the rest of that first discussion I linked as it may be relevant.