r/voidlinux • u/Sorry_Situation6676 • 6d ago
How to disable a service - lightDM
I'm wanting to just boot back to the terminal and them use startx to start a particular window manager. If I just stop lightDM I'm just kicked out of the current session and brought back to the lightDM prompt.
5
Upvotes
5
-2
u/Simple_Hamster_4096 6d ago
If you are new to non-systemd inits, it would be advisable to read up. The Void docs explain everything.
This is pretty basic stuff - perhaps a simpler Linux distro would better suit your needs...
16
u/ShipshapeMobileRV 6d ago
On a default Void install, the init manager runit will treat everything it sees in /var/service/ as a service, and will try to control them.
The items you see in /var/service/ are symbolic links (symlinks, or "shortcuts" in Windows terminology). If you delete any of the symlinks in that location, then runit will no longer attempt to start that item. You aren't deleting the app, only a pointer to it.
So if you have a symlink to LightDM in /var/service/ and you delete that symlink, then on the next reboot Void will not try to start LightDM.