Skip to main content
Topic: Can you give a real example of how to add a service to startup? (Read 625 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Can you give a real example of how to add a service to startup?

I've read the wiki, I don't get it. There's obviously no ../../sv folder which is on runit wiki. Can you give me a real example of adding GDM or SDDM or anything on dinit, openrc and runit?

Re: Can you give a real example of how to add a service to startup?

Reply #1
One way to just run programs without bothering to write service files on openrc is putting scripts in /etc/local.d, definitely read the README in that directory for more info.

Re: Can you give a real example of how to add a service to startup?

Reply #2
There's obviously no ../../sv folder which is on runit wiki
There obviously is one. Just try it and adopt it. You aren't actually creating the link where you think when you type this command.

Can you give me a real example of adding GDM or SDDM or anything on dinit, openrc and runit?
I don't think any example is needed, just follow the wiki which is pretty straightforward: `ln -s ../../sv/gdm /run/runit/service`

Re: Can you give a real example of how to add a service to startup?

Reply #3
There obviously is one. Just try it and adopt it. You aren't actually creating the link where you think when you type this command.
I don't think any example is needed, just follow the wiki which is pretty straightforward: `ln -s ../../sv/gdm /run/runit/service`
I see, that does work actually. However GDM doesn't work. But that's a separate issue. I will try it again, but most likely I will be posting a request to help me install GDM with something that doesn't look like an Android system (why do so many DEs do? Aren't most people using PC?) and isn't buggy for VM host but works fully with Wayland after I get some responses in my other topic on a DE recommendation.
One way to just run programs without bothering to write service files on openrc is putting scripts in /etc/local.d, definitely read the README in that directory for more info.
Thanks, I will check it if I end up with OpenRC in the end. Though my problem will be initial setup. After that, I will only use VM guests for everything.

I consider this thread solved.

Re: Can you give a real example of how to add a service to startup?

Reply #4
after I get some responses in my other topic on a DE recommendation
Yeah, just don't forget it isn't your personal blog and most of the things you ask can be answered by searching in an engine or even in the forum

 

Re: Can you give a real example of how to add a service to startup?

Reply #5
Yeah, just don't forget it isn't your personal blog and most of the things you ask can be answered by searching in an engine or even in the forum
I just spent 3 days doing just that and trying to remove X11 and switch to Wayland. Nothing worked so now I'm trying the base system which still doesn't work. That includes searching for Wayland-compatible up-to-date info, which is scarce. I never post on forums before I am sure that I cannot do it myself within a few days of morning to evening trials. On a holiday right now so I no-lifed for 3 days, however since that got me literally nowhere, and Monday I work, I want to get the system installed before then. I need my PC when I'm at home, and I cannot troubleshoot for 2 months checking past page 10 of the search results for wildest keyword combinations I come up with.

TLDR I've put roughly 50 hours into this so far and I haven't moved an inch. I need help. Someone has done what i'm trying to do. For them it will take 30 minutes to do a good deed and help a fellow Linuxer move on from the base installation. After I find out how to install the system with Wayland and non-systemd, I'm out of your hair and off to configure VMs which hopefully won't be impacted by the lack of systemd or X11.