[SOLVED] Cannot start lightdm on boot after switching to runit 21 January 2020, 01:19:35 Hi, I recently installed Artix with OpenRC, but decided to migrate to runit without reinstalling. I managed to remove all the OpenRC packages, and install the runit equivalents, and everything is working perfectly except that I cannot get lightdm to run on boot. The first few times I tried to follow the instructions in the wiki, the directory /run/runit seemed to be absent, but then it magically appeared. (The first few times, I booted from my Artix USB stick and chrooted into my installation; the last time, I booted into the virtual terminals on my permanent Artix installation itself. Maybe that’s what made the difference? Either way, lightdm still won’t start.)Also, lxde also fails to start, if I try to run startlxde. Startx works, but brings up twm (I think).Both lightdm and lightdm-gtk-greeter are installed.Can’t think of any other relevant information but happy to provide it if asked.Thank you in advance.Jeff Last Edit: 22 January 2020, 23:27:18 by nous
Re: Cannot start lightdm on boot after switching to runit Reply #1 – 21 January 2020, 01:38:47 Do you have lightdm-runit installed?
Re: Cannot start lightdm on boot after switching to runit Reply #2 – 21 January 2020, 03:50:05 Quote from: Jeffrollin – on 21 January 2020, 01:19:35Also, lxde also fails to start, if I try to run startlxde. Startx works, but brings up twm (I think).You could just do:echo 'startlxde' > .xinitrc or edit the .xinitrc if your xinitrc file has custom things in it you'd like to keep
Re: Cannot start lightdm on boot after switching to runit Reply #3 – 21 January 2020, 08:41:59 Quote from: Dudemanguy – on 21 January 2020, 01:38:47Do you have lightdm-runit installed?Hi, yes, lightdm-runit is installed.
Re: Cannot start lightdm on boot after switching to runit Reply #4 – 21 January 2020, 17:36:04 You should be able to just make the symlink from the /etc directory to the /run directory to enable it on bootup.Code: [Select]ln -s /etc/runit/sv/lightdm /run/runit/serviceIf that doesn't work, does it start if you manually start the service? ("sv up lightdm")
Re: Cannot start lightdm on boot after switching to runit Reply #5 – 21 January 2020, 19:48:06 Quote from: Dudemanguy – on 21 January 2020, 17:36:04You should be able to just make the symlink from the /etc directory to the /run directory to enable it on bootup.Code: [Select]ln -s /etc/runit/sv/lightdm /run/runit/serviceThat did it! Thanks. Whilst I don’t know why it didn’t start automatically when installed, and in fairness perhaps it was working as designed, I had misinterpreted the “.../service” as a variable to be replaced with “.../lightdm”, and also perhaps wasn’t aware that the line above would place a symlink *in* the directory rather than replacing the directory with a symlink.Thanks very much.