Artix Linux Forum

Init systems => dinit => Topic started by: tozzemon on 19 November 2024, 17:15:34

Title: Dinit: ly doesn't start, permission denied error
Post by: tozzemon on 19 November 2024, 17:15:34
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.
Title: Re: Dinit: ly doesn't start, permission denied error
Post by: davmac on 20 November 2024, 09:01:02
There's a relevant discussion here (https://forum.artixlinux.org/index.php/topic,7188.0.html).

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 (https://gitea.artixlinux.org/packages/ly-dinit) (the ly (https://gitea.artixlinux.org/packages/ly-dinit/src/branch/master/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.