Self-made runit init script 07 January 2021, 19:48:11 Hi everyone! I'm trying to setup this display manager https://github.com/drozdowsky/ly-void which looks pretty nice to me, since I'm using i3 with no desktop environment. I have succesfully installed it following the README. However, this one was made for void linux which keeps services in /etc/sv/ and links them to /var/service/ . So what I tried to do is creating /etc/runit/sv/ly-runit-service/run with this content https://raw.githubusercontent.com/drozdowsky/ly-void/master/res/ly-runit-service/run and I made it executable by running sudo chmod a+x /etc/runit/sv/ly-runit-service/run .Then I tried:- sudo ln -s /etc/runit/sv/ly-runit-service /etc/runit/service/but if I try:- sudo sv restart ly-runit-serviceit says:- fail: ly-runit-service: unable to change to service directory: file does not existSo, I tried to do:- sudo ln -s /etc/runit/sv/ly-runit-service /etc/runit/runsvdir/current/and then:- sudo sv restart ly-runit-serviceand it says:- timeout: down: ly-runit-service: 1s, normally up, want upso I think that for some reason it is not able to start the service.The strange thing is that it doesn't recognize the service when it is placed where it should be, and it does recognize the service when it is not placed where it should be. Why?After all, the display manager doesn't start at start-up Quote Selected
Re: Self-made runit init script Reply #1 – 07 January 2021, 20:16:03 Services expected to run are located in /etc/runit/runsvdir/default. Once it is linked there, it will automatically try to start.It seems, the script you use expects tty2 to be free, therefore you need to disable agetty-tty2 or change it to other tty in script itself Quote Selected
Re: Self-made runit init script Reply #2 – 07 January 2021, 20:34:10 Quote from: phoenix_king_rus – on 07 January 2021, 20:16:03Services expected to run are located in /etc/runit/runsvdir/default. Once it is linked there, it will automatically try to start.It seems, the script you use expects tty2 to be free, therefore you need to disable agetty-tty2 or change it to other tty in script itselfSo, I changed tty2 with tty3 within the script, removed the link /etc/runit/runsvdir/current/ly-runit-service and created a new link withsudo ln -s /etc/runit/sv/ly-runit-service /etc/runit/service Then I rebooted and nothing happened Quote Selected
Re: Self-made runit init script Reply #3 – 08 January 2021, 08:26:06 Quote from: spike32 – on 07 January 2021, 20:34:10So, I changed tty2 with tty3 within the script, removed the link /etc/runit/runsvdir/current/ly-runit-service and created a new link withsudo ln -s /etc/runit/sv/ly-runit-service /etc/runit/service Then I rebooted and nothing happenedBy default tty1 to tty6 are enabled, so you need at least tty7. Also, there is no /etc/runit/service, /etc/runit/runsvdir/default contains the running ones Quote Selected
Re: Self-made runit init script Reply #4 – 08 January 2021, 14:08:50 Quote from: phoenix_king_rus – on 08 January 2021, 08:26:06By default tty1 to tty6 are enabled, so you need at least tty7. Also, there is no /etc/runit/service, /etc/runit/runsvdir/default contains the running onesSo, I've set tty7 within the file and linked it to /etc/runit/runsvdir/default. Now, when I reboot tty1 starts as default, and if I change to tty7 I seeCode: [Select]Artix Linux 5.10.4-artix2-1 (tty7)_with no possibility to login, but I see continuous refreshes like it's trying to start Ly but it can't for some reason.Plus, if I run sudo sv status ly-runit-service it says: down: ly-runit-service: 0s, normally up, want upeven if I restart it. Quote Selected
Re: Self-made runit init script Reply #5 – 08 January 2021, 15:53:31 Try starting command in script manually Quote Selected
Re: Self-made runit init script Reply #6 – 08 January 2021, 16:21:04 Quote from: phoenix_king_rus – on 08 January 2021, 15:53:31Try starting command in script manuallyI'm sorry, I didn't understand what you mean. Quote Selected
Re: Self-made runit init script Reply #7 – 08 January 2021, 16:47:21 Run command from script as root, not as runit script.Then you'll get its error output Quote Selected
Re: Self-made runit init script Reply #8 – 08 January 2021, 17:15:33 Quote from: phoenix_king_rus – on 08 January 2021, 16:47:21Run command from script as root, not as runit script.Then you'll get its error outputI get a segmentation fault Quote Selected
Re: Self-made runit init script Reply #9 – 08 January 2021, 17:21:56 Most likely the same is in script Quote Selected
Re: Self-made runit init script Reply #10 – 08 January 2021, 17:32:48 Quote from: phoenix_king_rus – on 08 January 2021, 17:21:56Most likely the same is in scriptSo how could I solve it? What causes the segmentation fault? Quote Selected
Re: Self-made runit init script Reply #11 – 08 January 2021, 17:38:06 https://github.com/drozdowsky/ly-void project is dead, 1.5 years was not updated. Use runit service from this project and try the original, which is still devoleped https://github.com/nullgemm/ly (no need systemd). Quote Selected
Re: Self-made runit init script Reply #12 – 08 January 2021, 18:39:53 Quote from: alium – on 08 January 2021, 17:38:06https://github.com/drozdowsky/ly-void project is dead, 1.5 years was not updated. Use runit service from this project and try the original, which is still devoleped https://github.com/nullgemm/ly (no need systemd).I have installed this project https://github.com/nullgemm/ly and kept the same script for the runit service, but I'm still gettin the segmentation fault. Quote Selected
Re: Self-made runit init script Reply #13 – 08 January 2021, 19:43:00 https://aur.archlinux.org/packages/ly/Try building the AUR package. I've no idea how to set it up or if it works properly, but at least it didn't segfault when I tried it briefly so would get past that issue. Quote Selected
Re: Self-made runit init script Reply #14 – 10 January 2021, 12:26:31 Quote from: ####### – on 08 January 2021, 19:43:00https://aur.archlinux.org/packages/ly/Try building the AUR package. I've no idea how to set it up or if it works properly, but at least it didn't segfault when I tried it briefly so would get past that issue.The thing is that if I simply run ly form terminal it works, but if I run this script https://raw.githubusercontent.com/drozdowsky/ly-void/master/res/ly-runit-service/run with sudo ./run I get the segmentation fault Quote Selected