Init systems => runit => Topic started by: konimex on 12 September 2017, 14:49:41
Title: [TRACKER] Runit support
Post by: konimex on 12 September 2017, 14:49:41
This thread will be used as a tracker for a fully-working Runit support. This thread is constantly improved as time goes.
Installation
See https://wiki.artixlinux.org/Runit/Runit
Note for anyone with encrypted partitions: unlike OpenRC, which reads encrypted partition from /etc/conf.d/dmcrypt, Runit reads it from /etc/crypttab. Make sure you do changes as needed.
Differences between Runit in Artix and Runit in other system Unlike Void's Runit and Gentoo's Runit, Artix's Runit reads /run/runit/service by default. So, while you can use their wikis as reference, keep in mind that when you symlink a runscript, make sure to do it to /run/runit/service to make it work with runit.
Differences between OpenRC and Runit TBA
Known Issues TBA
References
https://smarden.org/runit
https://wiki.voidlinux.eu/runit
Any help would be appreciated. Thanks.
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 12 September 2017, 16:38:50
there is a separate package I believe called artix-runit-scripts https://github.com/artix-linux/runit-artix/ The readme reads:
Quote
Runit init scripts for Artix Linux
This repository contains the runit init scripts for the Artix Linux distribution.
This work is based on Void Linux's runit-void. Patches to Void Linux's repo will also be applied here. Dependencies
A POSIX shell A POSIX awk procps-ng (needs pkill -s0,1) runit
How to use it
To see enabled services for "current" runlevel:
$ ls -l /var/service
To see available runlevels (default and single, which just runs sulogin):
$ ls -l /etc/runit/runsvdir
To enable and start a service into the "current" runlevel:
# ln -s /etc/runit/sv/<service> /var/service
To disable and remove a service:
# rm -f /var/service/<service>
To view status of all services for "current" runlevel:
# sv status /var/service/*
Feel free to send patches and contribute with improvements!
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 12 September 2017, 16:45:22
I believe that runit can run ontop of openrc, redundant as a second init, or as supervisor of the existing init system. I am not sure what happens if you remove openrc leaving runit behind. As you say if elogind fails till there is a substitute that would be a problem. Do you know what void has in place of it, or have they forked their own version?
Title: Re: [TRACKER] Runit support
Post by: konimex on 12 September 2017, 17:18:12
I believe that runit can run ontop of openrc, redundant as a second init, or as supervisor of the existing init system.
Sure, the Gentoo Wiki has some guides so runit can be used as the service supervisor for OpenRC. In fact, Runit can replace OpenRC as an init, while retaining OpenRC's feature as service supervisor. See these files (https://github.com/cromnix/packages/tree/master/runit/runit-cromnix-openrc) for more information.
I am not sure what happens if you remove openrc leaving runit behind. As you say if elogind fails till there is a substitute that would be a problem. Do you know what void has in place of it, or have they forked their own version?
I'm running Artix with Runit right now. I need to mount a cgroup with the name OpenRC so elogind can run. (The source of the problem seems to be the --with-cgroup-controller=openrc build flag in Artix's elogind PKGBUILD)
Void still uses ConsoleKit2 by default, but they have vanilla elogind package in their repos.
Title: Re: [TRACKER] Runit support
Post by: konimex on 22 December 2017, 14:19:13
A little bit of update since 3 months ago.
Most of OpenRC's scripts in system should have its runit equivalent. However keep in mind that most of these are untested, especially wpa_supplicant. Any help in testing would be appreciated. I'm also still working for [world] and [galaxy] equivalent runscripts from OpenRC to runit.
WARNING: Before PR #4 (https://github.com/artix-linux/runit-artix/pull/4) is merged and rolled out to packages, Remove OpenRC from your system (that is, if you want to use runit instead) or alternatively, remove getty instances from OpenRC if you still want to use OpenRC to prevent collision between getty instances spawned by runit and OpenRC.
Title: Re: [TRACKER] Runit support
Post by: nous on 22 December 2017, 17:33:41
This is a good candidate for a wiki article on runit. @konimex PM me a password and I'll open you an account (once I fix the breakage php-7.2 caused in the wiki auth mechanism).
Title: Re: [TRACKER] Runit support
Post by: konimex on 27 December 2017, 02:08:27
This is a good candidate for a wiki article on runit. @konimex PM me a password and I'll open you an account (once I fix the breakage php-7.2 caused in the wiki auth mechanism).
Sure, PM sent.
Alright, after looking at some documentations for runit and s6, it is possible for daemontools-style scripts to have similar runscripts (hence, runscripts-{system,world,galaxy} as opposed to runit-{system,world,galaxy} or s6-{system,world,galaxy}), however this behavior is untested. Also, in some runscripts, the commands for dependencies are strictly runit (starting a service with dependency uses sv (http://smarden.org/runit/sv.8.html) which is exclusive to runit) and s6 uses s6-svc (http://skarnet.org/software/s6/s6-svc.html) with a very different command, I'm not sure what to do here so any help would be appreciated, thanks.
Title: Re: [TRACKER] Runit support
Post by: nous on 27 December 2017, 20:28:22
ATM the wiki is open to edit. Just use your username if you want credit for your edits.
Title: Re: [TRACKER] Runit support
Post by: konimex on 09 January 2018, 10:42:37
ATM the wiki is open to edit. Just use your username if you want credit for your edits.
It seems I cannot add (or edit) any articles at the moment, everytime I tried to create an article it just redirects to a blank page.
As of now most runscripts in [world] and [galaxy] should be available in the testing repositories. I'll work on documentations once the wiki problem is resolved.
If your runit-artix package is at version 20180108 or newer, all runit binaries has moved to /usr/lib/runit-artix/bin. Please symlink all binaries there to your standard /usr/bin directory. However, if you still have OpenRC installed, make sure to make the symlinks for halt, shutdown, poweroff and reboot in /usr/local/bin instead for easier deletion..
Title: Re: [TRACKER] Runit support
Post by: nous on 09 January 2018, 22:54:16
Will look into it as soon as I finish with the mail server.
Title: Re: [TRACKER] Runit support
Post by: E100 on 20 February 2018, 15:41:47
Huge thank you for making this happen! I've been using runit-only Artix for a day now and so far everything is working flawlessly (I migrated from arch's systemd straight to artix runit).
Title: Re: [TRACKER] Runit support
Post by: slblxs on 22 February 2018, 16:45:17
I have tried installing the runit, but to no avail. I tried a live iso installation, followed all the steps of the wiki, loaded the grub, but it did not reach the login screen, I tried with slim, lxdm and lightdm and it did not work. I tried the startx and nothing, I also have no internet connection after the installation, even following the steps for ip static. Then I tried with an installation with openrc, change to runit and after following the steps of the wiki, and installing artix-runit, I uninstalled openrc and again neither lxdm or slim login screen, again without internet. I'm with internet via ethernet cable, it's failing something, but I have not figured it out yet. I will follow this topic to know of news. :'(
Title: Re: [TRACKER] Runit support
Post by: konimex on 23 February 2018, 03:20:12
I have tried installing the runit, but to no avail. I tried a live iso installation, followed all the steps of the wiki, loaded the grub, but it did not reach the login screen, I tried with slim, lxdm and lightdm and it did not work. I tried the startx and nothing, I also have no internet connection after the installation, even following the steps for ip static. Then I tried with an installation with openrc, change to runit and after following the steps of the wiki, and installing artix-runit, I uninstalled openrc and again neither lxdm or slim login screen, again without internet. I'm with internet via ethernet cable, it's failing something, but I have not figured it out yet. I will follow this topic to know of news. :'(
Can you provide your steps on how to activate LXDM/LightDM? SLiM's runit-scripts are not yet provided, but both LXDM and LightDM should work normally.
Also, how do you configure your networking? Have you seen this page? (http://wiki.artixlinux.org/runit/NetworkConfiguration)
I'll make a migration guide later.
Title: Re: [TRACKER] Runit support
Post by: slblxs on 23 February 2018, 22:24:41
Yes I followed the wiki, either for the version of installing runit in an Openrc installation. Wants for the net install version only with runit. And always following the wiki, the errors were similar without internet access cable or wifi and never got to the display manager, lxdm, slim, sddm, xdm. As I said I always followed the steps of the wiki and did not solve. I wanted to test an Artix with runit, but I have to make do with Void.
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 24 February 2018, 00:09:45
How about S6, have you ever tried it? In theory S6 is better than runit, in practice I can't notice any difference in performance. You can install obarun then keep obarun repositories on top for S6, use artix (instead of arch) below for everything else. Void is a good system but the variety of pkgs you find here you may never see in void. If you think void boots up fast wait until you see obarun.
Someone is probably going to scream at me for promoting an other distribution here, but it is a safe way to use S6 in artix, till someone makes the S6-bundle a plug and play item here. Just make sure you indicate that you have done so, when you are asking for help, so people know who to blame for the problem :)
Title: Re: [TRACKER] Runit support
Post by: konimex on 25 February 2018, 08:21:03
Yes I followed the wiki, either for the version of installing runit in an Openrc installation. Wants for the net install version only with runit. And always following the wiki, the errors were similar without internet access cable or wifi and never got to the display manager, lxdm, slim, sddm, xdm. As I said I always followed the steps of the wiki and did not solve. I wanted to test an Artix with runit, but I have to make do with Void.
Again, without any logs (or how to reproduce things), I cannot help you.
How about S6, have you ever tried it? In theory S6 is better than runit, in practice I can't notice any difference in performance. You can install obarun then keep obarun repositories on top for S6, use artix (instead of arch) below for everything else. Void is a good system but the variety of pkgs you find here you may never see in void. If you think void boots up fast wait until you see obarun.
Someone is probably going to scream at me for promoting an other distribution here, but it is a safe way to use S6 in artix, till someone makes the S6-bundle a plug and play item here. Just make sure you indicate that you have done so, when you are asking for help, so people know who to blame for the problem :)
I have tried s6 some time ago, and while I have interest in supporting s6 for Artix, I have several constraints.
1. I have to make time for trial-and-error, but I can't afford to do so since I have a very hectic schedule in uni atm, and I have to build a support for building iso for runit systems, and fix possible bugs that happened in the runit builds I maintain.
2. S6 requires two different programs (execline and skalibs), as opposed to runit.
3. I need to find a way so Artix can switch init between two existing init systems easily. (I have a prototype, but I cannot consider it production ready since it isn't polished)
4. Someone had tried to do it, and I'll just have to follow the footsteps when I finally step into s6 in case there's no one to step up.
I will eventually try s6 for Artix, but not now, or any time soon.
Title: Re: [TRACKER] Runit support
Post by: artoo on 25 February 2018, 09:42:02
Please give konimex a little time with his runit packages. Once these are finished, fine, matured, we gonna focus on supporting iso building with runit. buildiso used to support systemd, apart from openrc, and it basically has all the stuff in it to easily throw in runit. We just haven't done any work with runit iso, and I will definitely be the first who built runit iso and tried, apart from konimex, hehe.
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 25 February 2018, 11:01:49
If you are talking to me, I was responding to @slblxs not @konimex I have been following the development of konimex's work and appreciate the effort. I was suggesting an alternative experiment to slblxs while his runit attempts were failing.
Anyway, here is some good bed-time reading to what I am referring to https://skarnet.org/software/s6/s6-svscan-1.html
On the other hand, running the same desktop, as far as I can tell the same services, daemons, etc. between void, obarun, and artix, in terms of initial resources used at starting idle the score is in the same order. Small differences and a fraction of what it is with systemd, but runit (for reasons I can't yet explain) comes 1st, S6 a close 2nd, and sysvinit/openrc third. I think there are more advantages in sticking with one of them, learning to fine tune it, than to be switching back and forth like it is a tire brand on a motorcycle. Good analogy? It is what keeps you and your vehicle off the pavement unless speed comes to 0 and you put the stand down.
Title: Re: [TRACKER] Runit support
Post by: konimex on 26 February 2018, 11:23:08
NOTICE TO ALL RUNIT USERS:
We are now migrating our naming scheme from package_name-runscripts to package_name-runit.
If you are using [gremlins], you should notice that pacman will ask if you want to replace the associated runscript package with runit package, answer yes.
Also, we are moving our available runit-scripts directory from /etc/sv to /etc/runit/sv, this is done to ensure there are no collisions if we add support for s6 systems.
This migration will be completed and the new package should land in [system], [world], and [galaxy] respectively at the end of March or the beginning of April.
In the meantime, all new packages with new naming scheme and new directory are on hold in [gremlins] and [galaxy-gremlins], respectively.
COMPLETED: - [system], now on [gremlins]
IN PROGRESS: - [world], some on [gremlins]
NOT STARTED YET: - [galaxy]
Title: Re: [TRACKER] Runit support
Post by: slblxs on 27 February 2018, 15:14:28
I'm going to wait a little longer and then try to install runit from scratch. 8)
Title: Re: [TRACKER] Runit support
Post by: mandog on 27 February 2018, 23:36:52
We are now migrating our naming scheme from package_name-runscripts to package_name-runit.
If you are using [gremlins], you should notice that pacman will ask if you want to replace the associated runscript package with runit package, answer yes.
Also, we are moving our available runit-scripts directory from /etc/sv to /etc/runit/sv, this is done to ensure there are no collisions if we add support for s6 systems.
This migration will be completed and the new package should land in [system], [world], and [galaxy] respectively at the end of March or the beginning of April.
In the meantime, all new packages with new naming scheme and new directory are on hold in [gremlins] and [galaxy-gremlins], respectively.
COMPLETED: - [system], now on [gremlins]
IN PROGRESS: - [world], some on [gremlins]
NOT STARTED YET: - [galaxy]
That is great news I just love S6 and runit, But will wait a while before doing a clean install
Title: Re: [TRACKER] Runit support
Post by: slblxs on 02 March 2018, 16:04:05
I installed artix openrc in a virtualbox, I followed the wiki to install runit. I did all the steps, but when I go to uninstall openrc, this message appears.
[sl slb]# pacman -R openrc a verificar dependências... erro: falhou ao preparar a transação (não foi possível cumprir as dependências) :: acpid-openrc: ao remover openrc quebra a dependência 'openrc' :: alsa-utils-openrc: ao remover openrc quebra a dependência 'openrc' :: cronie-openrc: ao remover openrc quebra a dependência 'openrc' :: dbus-openrc: ao remover openrc quebra a dependência 'openrc' :: dhcpcd-openrc: ao remover openrc quebra a dependência 'openrc' :: haveged-openrc: ao remover openrc quebra a dependência 'openrc' :: kmod-openrc: ao remover openrc quebra a dependência 'openrc' :: mdadm-openrc: ao remover openrc quebra a dependência 'openrc' :: ntp-openrc: ao remover openrc quebra a dependência 'openrc' :: openrc-settingsd: ao remover openrc quebra a dependência 'openrc' :: openssh-openrc: ao remover openrc quebra a dependência 'openrc' :: rpcbind-openrc: ao remover openrc quebra a dependência 'openrc' :: rsync-openrc: ao remover openrc quebra a dependência 'openrc' :: syslog-ng-openrc: ao remover openrc quebra a dependência 'openrc' :: wpa_supplicant-openrc: ao remover openrc quebra a dependência 'openrc' [sl slb]#
I apologize, but the system is in Portuguese so the answer of the dependencies is in Portuguese. How can I solve it without breaking the system?
Title: Re: [TRACKER] Runit support
Post by: Chris Cromer on 02 March 2018, 17:58:21
I installed artix openrc in a virtualbox, I followed the wiki to install runit. I did all the steps, but when I go to uninstall openrc, this message appears.
[sl slb]# pacman -R openrc a verificar dependências... erro: falhou ao preparar a transação (não foi possível cumprir as dependências) :: acpid-openrc: ao remover openrc quebra a dependência 'openrc' :: alsa-utils-openrc: ao remover openrc quebra a dependência 'openrc' :: cronie-openrc: ao remover openrc quebra a dependência 'openrc' :: dbus-openrc: ao remover openrc quebra a dependência 'openrc' :: dhcpcd-openrc: ao remover openrc quebra a dependência 'openrc' :: haveged-openrc: ao remover openrc quebra a dependência 'openrc' :: kmod-openrc: ao remover openrc quebra a dependência 'openrc' :: mdadm-openrc: ao remover openrc quebra a dependência 'openrc' :: ntp-openrc: ao remover openrc quebra a dependência 'openrc' :: openrc-settingsd: ao remover openrc quebra a dependência 'openrc' :: openssh-openrc: ao remover openrc quebra a dependência 'openrc' :: rpcbind-openrc: ao remover openrc quebra a dependência 'openrc' :: rsync-openrc: ao remover openrc quebra a dependência 'openrc' :: syslog-ng-openrc: ao remover openrc quebra a dependência 'openrc' :: wpa_supplicant-openrc: ao remover openrc quebra a dependência 'openrc' [sl slb]#
I apologize, but the system is in Portuguese so the answer of the dependencies is in Portuguese. How can I solve it without breaking the system?
Change the ln -s to ln -sf, this will foce it to replace those symlinks.
Title: Re: [TRACKER] Runit support
Post by: slblxs on 02 March 2018, 23:18:35
Thanks for the help, but I continue without accessing the login screen and without internet. Here photos of how it is;
Title: Re: [TRACKER] Runit support
Post by: Chris Cromer on 02 March 2018, 23:36:55
As far as internet goes, you need to install the runit scripts for networking. In my particular case I needed NetworkManager and dhcpcd. On a notebook you would probably need something like wpa_supplicant for wifi. Without these service scripts running internet cannot be achieved.
Title: Re: [TRACKER] Runit support
Post by: konimex on 05 March 2018, 06:21:28
Sorry for late reply. It's midterms right now so I'm quite busy.
As far as internet goes, you need to install the runit scripts for networking. In my particular case I needed NetworkManager and dhcpcd. On a notebook you would probably need something like wpa_supplicant for wifi. Without these service scripts running internet cannot be achieved.
AFAIC Xorg is not a runit issue (unless you're trying to use a DM) but for networking, see also: https://wiki.artixlinux.org/Runit/NetworkConfiguration
Also, I'm migrating the runitscript folders so expect the directories to be changed and the wikis to be updated at the end of March/beginning of April.
I installed artix openrc in a virtualbox, I followed the wiki to install runit. I did all the steps, but when I go to uninstall openrc, this message appears.
[sl slb]# pacman -R openrc a verificar dependências... erro: falhou ao preparar a transação (não foi possível cumprir as dependências) :: acpid-openrc: ao remover openrc quebra a dependência 'openrc' :: alsa-utils-openrc: ao remover openrc quebra a dependência 'openrc' :: cronie-openrc: ao remover openrc quebra a dependência 'openrc' :: dbus-openrc: ao remover openrc quebra a dependência 'openrc' :: dhcpcd-openrc: ao remover openrc quebra a dependência 'openrc' :: haveged-openrc: ao remover openrc quebra a dependência 'openrc' :: kmod-openrc: ao remover openrc quebra a dependência 'openrc' :: mdadm-openrc: ao remover openrc quebra a dependência 'openrc' :: ntp-openrc: ao remover openrc quebra a dependência 'openrc' :: openrc-settingsd: ao remover openrc quebra a dependência 'openrc' :: openssh-openrc: ao remover openrc quebra a dependência 'openrc' :: rpcbind-openrc: ao remover openrc quebra a dependência 'openrc' :: rsync-openrc: ao remover openrc quebra a dependência 'openrc' :: syslog-ng-openrc: ao remover openrc quebra a dependência 'openrc' :: wpa_supplicant-openrc: ao remover openrc quebra a dependência 'openrc' [sl slb]#
I apologize, but the system is in Portuguese so the answer of the dependencies is in Portuguese. How can I solve it without breaking the system?
Did you see the wiki page for runit?
Quote
WARNING: If you still have openrc installed, make sure to make the symlinks for halt, shutdown, poweroff and reboot in /usr/local/bin instead for easier deletion.
Title: Re: [TRACKER] Runit support
Post by: slblxs on 05 March 2018, 11:09:55
Yes @konimex, I followed every step of the wiki, even in the wakeup call to leave the network manager functional. Even before rebooting, I took a look at the Void linux wiki. But still, the same problems remain, I'll wait a few weeks and then try again. Thanks again for your help.
Title: Re: [TRACKER] Runit support
Post by: konimex on 28 March 2018, 14:50:49
Hey guys. An update here.
As I said earlier some time ago, we are moving our whole runitscripts to /etc/runit/sv from /etc/sv, also we are changing the naming schemes from "package-runscripts" to "package-runit".
Today, we have finished migrating our runit (now [system], but [world] and [galaxy] should be finished before midnight UTC) packages to its own PKGBUILD as I promised (at the end of March or the beginning of April).
If you're on [gremlins] and you don't have any runitscript in [galaxy], you probably don't have to do this again. However, if you are on stable or if you have a runitscript in [galaxy] installed, you will need to move your symlinks.
For example, if you have the package "openntpd-runit" (used to be "openntpd-runscripts"), overwrite your symlink:
Yes @konimex, I followed every step of the wiki, even in the wakeup call to leave the network manager functional. Even before rebooting, I took a look at the Void linux wiki. But still, the same problems remain, I'll wait a few weeks and then try again. Thanks again for your help.
I think I forgot a step in the docs. Did you install the package "runit-artix"?
Title: Re: [TRACKER] Runit support
Post by: Dudemanguy on 03 April 2018, 22:35:22
I just wanted to say thanks for the work on runit support. I've just started testing it out on one of my machines and I really like it a lot so far. Switching was really simple and I'll be sure to migrate everything else soon.
Title: Re: [TRACKER] Runit support
Post by: Dudemanguy on 04 April 2018, 04:15:58
Just a quick question. Is there any reason to be concerned about this error? On boot, I get this message and I don't know why.
[ 3.670727] elogind[605]: Failed to connect to system bus: No such file or directory [ 3.670770] elogind[605]: Failed to fully start up daemon: No such file or directory
As far as I can tell, this does absolutely nothing. I have dbus and elogind up and running just fine over here. I don't know why it's giving me that message unless I'm just forgetting a service.
Title: Re: [TRACKER] Runit support
Post by: konimex on 04 April 2018, 09:47:31
[ 3.670727] elogind[605]: Failed to connect to system bus: No such file or directory [ 3.670770] elogind[605]: Failed to fully start up daemon: No such file or directory
As far as I can tell, this does absolutely nothing. I have dbus and elogind up and running just fine over here. I don't know why it's giving me that message unless I'm just forgetting a service.
The only reason for that is because runit services are started in parallel, elogind immediately looks for a dbus service, while dbus was still initializing. So, no, that error should not concern you, but I'm looking for way to turn that message off.
Title: Re: [TRACKER] Runit support
Post by: Dudemanguy on 05 April 2018, 04:23:14
Ah, that makes sense. It might not be a clean fix, but I just slapped "sleep 1s" before the dbus check and there's no error message for me anymore.
Title: Re: [TRACKER] Runit support
Post by: konimex on 14 April 2018, 11:47:17
A new runit-artix package (20180414) has been released and is now in [gremlins].
An important change in this release is binaries for pause, modules-load, and zzz has been moved back to /usr/bin, this is after I determined that there are no packages in Artix that uses the same binary names as runit-artix.
We'll move it to [system] this Monday.
If you symlinked /usr/bin/pause, /usr/bin/modules-load, and /usr/bin/zzz, please remove it before running pacman -Syu.
We're sorry for your inconvenience.
Also, we're testing a new runit-only image for Artix, expect a new post in the upcoming week.
Title: Re: [TRACKER] Runit support
Post by: artoo on 15 April 2018, 17:28:55
A runit release iso is not too far away, some minor issues to sort out. Great job konimex.
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 16 April 2018, 21:14:01
Would it possibly ever be one installer that would provide the choice of the init system? It would be one installer for two distributions and I don't think this ever existed. Fascinating when most others struggle with one.
Title: Re: [TRACKER] Runit support
Post by: konimex on 17 April 2018, 04:15:40
Would it possibly ever be one installer that would provide the choice of the init system? It would be one installer for two distributions and I don't think this ever existed. Fascinating when most others struggle with one.
Personally I'm not a fan of Calamares (manual install using the old strapping way gives me more control), but it should be possible. In fact, I'm aiming so both openrc-init and runit-init can be placed in the same iso, and give choice to users on which init to use during boot.
Title: Re: [TRACKER] Runit support
Post by: artoo on 17 April 2018, 09:36:16
I did what the wiki said, forced removal of openrc otherwise it will not be replaced, edite the init line in grub, then system would halt after trying to boot. I only caught a couple of lines from the top that looked like runit before it halted. chroot was not easy either, it seems as it lost the ln for bash so artools-chroot /mnt /usr/bin/bash eventually worked there seems to be a directory instead of a link called bin that had a link to the init system in it, I have no clue how it got there.
error: target not found: inetutils-runit error: target not found: kmod-runit error: target not found: openvpn-runit error: target not found: eudev-runit error: target not found: displaymanager-runit error: target not found: cryptsetup-runit
The rest were ok.
Title: Re: [TRACKER] Runit support
Post by: konimex on 19 April 2018, 02:44:38
Sorry, the wiki is not yet updated. I've updated the wiki.
I did what the wiki said, forced removal of openrc otherwise it will not be replaced, edite the init line in grub, then system would halt after trying to boot. I only caught a couple of lines from the top that looked like runit before it halted. chroot was not easy either, it seems as it lost the ln for bash so artools-chroot /mnt /usr/bin/bash eventually worked there seems to be a directory instead of a link called bin that had a link to the init system in it, I have no clue how it got there.
error: target not found: inetutils-runit error: target not found: kmod-runit error: target not found: openvpn-runit error: target not found: eudev-runit error: target not found: displaymanager-runit error: target not found: cryptsetup-runit
The rest were ok.
Most of them are handled directly by runit's stage 1 so it doesn't make sense to add them manually. As for Display Manager, the service script for the respective DM (lxdm-runit, gdm-runit) should suffice.
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 19 April 2018, 13:45:45
The system is locked in read only mode, somehow, and /usr/bin /bin link is missing The only way to chroot is if I specify where a shell is #artools-chroot /mnt /usr/bin/bash When I attempt to boot in either normal or recovery I get 2-3 lines on top (same as I did with void) and within 2-3" the systems shutsdown. It is so fast I doubt runit has saved any logs, but I am willing to look if you tell me where. I did add the line in grub under linux UUID...... for the init system as the wiki said yesterday The only problem I had was that OpenRC did not want to move over for runit so I had to force runit and remove openrc afterwards, as they were in conflict.
Title: Re: [TRACKER] Runit support
Post by: konimex on 19 April 2018, 14:52:09
The system is locked in read only mode, somehow, and /usr/bin /bin link is missing
That sounds like something is wrong with your system, but not from the runit side. And because /bin is owned by the filesystem package, it should be there and symlinks to /usr/bin. You don't forget installing the runit-artix package, right?
When I attempt to boot in either normal or recovery I get 2-3 lines on top (same as I did with void) and within 2-3" the systems shutsdown. It is so fast I doubt runit has saved any logs, but I am willing to look if you tell me where.
Runit doesn't save any logs for stage1, but again, maybe you forgot to install the runit-artix package.
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 19 April 2018, 17:39:31
No both runit and runit artix were installed, also all the relevant -runit files except for the services I didn't find any, as listed above. The system never had a problem before, sddm, openbox, and I followed all steps. It was updated/upgraded just the day before. Why am I chrooting? Because instead of boot it just shutsdown. The /usr/bin link was there, for sure, before the runit installation. I have no idea what went wrong, I just followed the steps on wiki like you mention earlier on the post. When I tried to reboot --- puff --- nada --
Should I try through chroot (artools) to reinstall openrc ?
I just left it as it was so I don't do anything to harm it more. How do you recreate the link from chroot? It says it can't because it is a read only system.
Title: Re: [TRACKER] Runit support
Post by: konimex on 19 April 2018, 23:44:09
No both runit and runit artix were installed, also all the relevant -runit files except for the services I didn't find any, as listed above. The system never had a problem before, sddm, openbox, and I followed all steps. It was updated/upgraded just the day before. Why am I chrooting? Because instead of boot it just shutsdown. The /usr/bin link was there, for sure, before the runit installation. I have no idea what went wrong, I just followed the steps on wiki like you mention earlier on the post. When I tried to reboot --- puff --- nada --
Should I try through chroot (artools) to reinstall openrc ?
I just left it as it was so I don't do anything to harm it more. How do you recreate the link from chroot? It says it can't because it is a read only system.
I cannot reproduce this on any of my machine or VMs. Can you test this on a VM and see if your problem is also there?
It shouldn't be read-only because root is remounted rw or you'll be dropped to emergency shell.
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 20 April 2018, 00:02:43
1 https://smarden.org/runit that you have in the wiki is dead
After figuring out a way to remake the symlink for /bin I also thought that my problems may be for using gremlins. So I # gremlins and got runit and runit-artix from system, 1 version back each. This is all artools-chroot. When I replaced the link for /bin and exited chroot worked normally whithout specifying a path for bash. The services *-runit that I had installed had to be reinstalled, so I did that. At first they were giving me some trouble because of conflict with openrc, but openrc was removed since yesterday. What was left were 3-4 runscripts that didn't have a runit equivalent. So I removed them and reinstalled all -runit scripts by force. So finally I reboot to the system and all is functional but no network. Somehow networkmanager-runit was not there. No halt or reboot would work either. Neither killing #1 worked. But ctrlaltdel at console did work, I am glad that was symlinked. I chrooted again and installed networkmanager and corresponding -runit file and tried it again. No network yet, so this time I downloaded the wiki page but the link for further reference as listed above does not exist.
I just have a hard time understanding how anyone used these particular packages and got the system to work. To double check the problem went back to gremlins and reinstalled your artix runit pkg and runit istelf and it did the same exact thing again. It removed the bin link, made a bin directory and placed the init link inside the /bin. So I moved the init link into /usr/bin and recreated the bin link to /usr/bin It is your package that screwes this up, not me!
I am getting close to putting this together but it is a homemade garage job at this stage. It is wearing me down!
That page poison=0/2 I think zeros out ram for meltdown/spectre protection. Irrelevant to runit I think
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 20 April 2018, 00:07:53
Yes, go reproduce what I am saying with the gremlins pkgs. It doesn't say anywhere that those are useless. This was the source of all this trouble, once the /bin link is broken any software related to pacman etc. is bound to mess installation and removal up as it is calling /bin/bash etc.. that don't exist.
I don't like vms because they are just vms not 'real" systems on real hardware.
I managed to get s6 working on a standard new manjaro-lxde installation. It rocks :) Read my article on sysdfree
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 20 April 2018, 01:32:23
I gave up, everything working but can't get networkmanager to work. I did start the service, it is there in /run/runit with all the other services, eth0 seems active, has a mac address, no connection. Maybe I should try something like connman ? Tired of rebooting though.
Title: Re: [TRACKER] Runit support
Post by: konimex on 20 April 2018, 11:13:29
Instead of making 3 separate post, can't you just edit your latest post in case there are no new replies? Seriously.
I want to check if we have the same runit-artix package. Do you have the latest runit-artix installed in [gremlins] (20180414-4)? Here's the PKGBUILD (https://github.com/artix-linux/packages/blob/master/runit-artix/repos/testing-x86_64/PKGBUILD).
The 20180414-2 package is faulty, but it should be fixed in the latest 20180414-4, your mirror seems not to be syncing with our builds.
I just have a hard time understanding how anyone used these particular packages and got the system to work. To double check the problem went back to gremlins and reinstalled your artix runit pkg and runit istelf and it did the same exact thing again. It removed the bin link, made a bin directory and placed the init link inside the /bin. So I moved the init link into /usr/bin and recreated the bin link to /usr/bin It is your package that screwes this up, not me!
I gave up, everything working but can't get networkmanager to work. I did start the service, it is there in /run/runit with all the other services, eth0 seems active, has a mac address, no connection. Maybe I should try something like connman ? Tired of rebooting though.
Did you install networkmanager-runit? If you have, try to check what's wrong with nmtui. NetworkManager is out of this thread's scope since "works on my machine". You may want to go to the IRC.
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 20 April 2018, 11:54:58
I had to activate eth0 manually though, all that appeared in ifconfig was lo when I logged in.
I don't know which actually helped and which is unnecessary yet, I just loaded things to get a connection somehow.
1 more question: Is there anything around the original networkmanager used by artix (at least on the older installers) that is OpenRC dependent and I may have taken it off by removing OpenRC? I noticed that:
1 gremlins/runit-artix 20180414-2 (init) [installed] Runit initscripts for Artix 2 system/runit-artix 20180414-1 [installed: 20180414-2] Runit initscripts for Artix
is your -4 pkg in goblins?
This is what I installed before with chroot when I got a net connection, on top of the networkmanager and wicd (that never worked) that I had before.
There we go. It seems mirror1 is acting up again. It doesn't sync anything since 16 April. -4 is currently in gremlins, but the mirror isn't syncing right now.
1 more question: Is there anything around the original networkmanager used by artix (at least on the older installers) that is OpenRC dependent and I may have taken it off by removing OpenRC? I noticed that:
ping -c 4 2a01:7e01::f03c:91ff:febc:322 PING 2a01:7e01::f03c:91ff:febc:322(2a01:7e01::f03c:91ff:febc:322) 56 data bytes 64 bytes from 2a01:7e01::f03c:91ff:febc:322: icmp_seq=1 ttl=52 time=83.8 ms 64 bytes from 2a01:7e01::f03c:91ff:febc:322: icmp_seq=2 ttl=52 time=84.0 ms 64 bytes from 2a01:7e01::f03c:91ff:febc:322: icmp_seq=3 ttl=52 time=82.9 ms 64 bytes from 2a01:7e01::f03c:91ff:febc:322: icmp_seq=4 ttl=52 time=83.7 ms
--- 2a01:7e01::f03c:91ff:febc:322 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3003ms rtt min/avg/max/mdev = 82.905/83.622/84.070/0.522 ms [artix2@7010 ~]$ ping -c 4 51.255.48.78 connect: Network is unreachable
Unless ww4 is declared and DOD brought down the internet (ipv4) :)
Title: Re: [TRACKER] Runit support
Post by: konimex on 20 April 2018, 12:57:17
ping -c 4 2a01:7e01::f03c:91ff:febc:322 PING 2a01:7e01::f03c:91ff:febc:322(2a01:7e01::f03c:91ff:febc:322) 56 data bytes 64 bytes from 2a01:7e01::f03c:91ff:febc:322: icmp_seq=1 ttl=52 time=83.8 ms 64 bytes from 2a01:7e01::f03c:91ff:febc:322: icmp_seq=2 ttl=52 time=84.0 ms 64 bytes from 2a01:7e01::f03c:91ff:febc:322: icmp_seq=3 ttl=52 time=82.9 ms 64 bytes from 2a01:7e01::f03c:91ff:febc:322: icmp_seq=4 ttl=52 time=83.7 ms
--- 2a01:7e01::f03c:91ff:febc:322 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3003ms rtt min/avg/max/mdev = 82.905/83.622/84.070/0.522 ms [artix2@7010 ~]$ ping -c 4 51.255.48.78 connect: Network is unreachable
Unless ww4 is declared and DOD brought down the internet (ipv4) :)
I don't know if this is intended by NM, but it seems NM just stopped trying IPv4 after detecting an IPv6 IP. A workaround would be use NM with dhclient as its DHCP resolver. Or using nmtui, in Wired connection (particularly in IPv4 Configuration Section), enable the "Require IPv4 addressing for this connection" checkbox.
This is out of scope of this thread so I suggest you to go to #artix IRC channel.
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 20 April 2018, 13:39:36
I know it is not relevant to the thread but never in 9 months had I ever had networking issues till I switched to runit, so it is related. On my other artix installation, a clone of the original, netifrc is installed, so I am wondering whether it is related.
Title: Re: [TRACKER] Runit support
Post by: Dudemanguy on 20 April 2018, 15:33:53
Personally, I've always found NetworkManager to be a giant pain that mysteriously breaks. I just use dhcpcd and the wpa_supplicant hook.
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 20 April 2018, 20:48:31
warning: dnscrypt-proxy-runit: local (20180406-1) is newer than galaxy-gremlins (20180330-1)
# yaourt runit artix 1 gremlins/halt 0.2-1 [installed] Artix Linux's wrapper program for OpenRC and runit's shutdown scheme 2 gremlins/runit-artix 20180414-4 (init) [installed] Runit initscripts for Artix 3 system/runit-artix 20180414-1 [installed: 20180414-4] Runit initscripts for Artix
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 21 April 2018, 06:53:05
It is broken again. After the the new package (runit-artix-----4) came in, together with other upgrades, it did the same exact thing again, it removed the /bin link, and then I replaced it yet again. Now on boot it says it is waiting for the uuid=... (the root partition) and then it says (10s) it is not responding and crashes at stage 1.
I asked before and you said you have modified the wiki, although I did not notice anything being modified.
It is broken again. After the the new package (runit-artix-----4) came in, together with other upgrades, it did the same exact thing again, it removed the /bin link, and then I replaced it yet again.
It doesn't even touch /bin, and I've done no modifications to /etc/runit/core-services/03-filesystem.sh (https://github.com/artix-linux/runit-artix/blob/master/core-services/03-filesystems.sh). I don't know what happened to your system, but I'm sure it's not because, I quote "it's your package fault, not me!".
Now on boot it says it is waiting for the uuid=... (the root partition) and then it says (10s) it is not responding and crashes at stage 1.
Either it's stuck on initramfs (which shouldn't), or it doesn't want to remount /. But it shouldn't crash and go to stage3 since it'll launch an emergency shell instead.
These files has no reference, which files are you talking about?
This one. (https://ptpb.pw/CBOK.png)
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 21 April 2018, 11:27:34
it goes to emergency cell but nothing works, no commands, no ttys nothing, only the power button works. It says it can't locate the root partition, although it is there, the uuid is correct and it is checking fine. Three different installations of runit-artix (2 of the -3 and 1 of the -4) did exactly the same thing, removed bin link. The -3 version would replace it with a directory /bin/ that had the init link in it. The -4 just removed it. The system worked fine before the transaction with runit. Should I attempt to put openrc back in it? Other than following the instructions (partially) of moving from manjaro or arch to artix (disregarding the systemd removal) it is the only instructions I have in getting the system back.
You do remember that it worked yesterday with the older runit-artix except for ipv4 connectivity, I only had ipv6. When the repositories refreshed and brought the new gremlins files and I updated that is when it locked up.
This was not a fresh install, it is an old system, it had 11GB of files in it without /var/cache which is in a separate partition and without /home. According to what you are circling above I just followed all the instructions, but I had to use --force to get it installed and removing openrc, which is not mentioned on the instructions. Partially I think it was due some of the ***-openrc/-runscript files that had no -runit equivalents.
Title: Re: [TRACKER] Runit support
Post by: konimex on 21 April 2018, 11:42:19
it goes to emergency cell but nothing works, no commands, no ttys nothing, only the power button works. It says it can't locate the root partition, although it is there, the uuid is correct and it is checking fine. Three different installations of runit-artix (2 of the -3 and 1 of the -4) did exactly the same thing, removed bin link. The -3 version would replace it with a directory /bin/ that had the init link in it. The -4 just removed it. The system worked fine before the transaction with runit. Should I attempt to put openrc back in it? Other than following the instructions (partially) of moving from manjaro or arch to artix (disregarding the systemd removal) it is the only instructions I have in getting the system back.
You know, there's a reason I only provide -1 (system) and -4 (gremlins). Both -2 and -3 are faulty, and are not supported. If you directly installed -4 from a faulty -3 and -2 package, it would "remove" /bin. But if you installed -4 (after yet another symlink from /bin to /usr/bin) after -1, it shouldn't happen as the only transaction happened is the symlink from /usr/bin/init to runit-init.
But for now, you can either go back to -1 or go back to openrc. runit builds are still in transitionary period and eventually OpenRC and runit will have one halt/poweroff/reboot/shutdown system so you and I both don't have to deal with this headache.
You do remember that it worked yesterday with the older runit-artix except for ipv4 connectivity, I only had ipv6. When the repositories refreshed and brought the new gremlins files and I updated that is when it locked up.
That's NM, and has no relevance in your problem now.
This was not a fresh install, it is an old system, it had 11GB of files in it without /var/cache which is in a separate partition and without /home. According to what you are circling above I just followed all the instructions, but I had to use --force to get it installed and removing openrc, which is not mentioned on the instructions.
Clearly you didn't read the wiki. If you used -4, runit-artix would conflict with openrc anyway.
Quote
WARNING: If you still have openrc installed, make sure to make the symlinks for halt, shutdown, poweroff and reboot in /usr/local/bin instead for easier deletion.
Partially I think it was due some of the ***-openrc/-runscript files that had no -runit equivalents.
I explained the *-openrc files not existing in runit because of it being handled directly by /etc/runit/1.
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 21 April 2018, 12:24:18
The wiki says nothing about invalid pkgs in the repository and the only mention of -4 in the wiki is a coincidental match in the uuid example. It says in the wiki that there are pkgs in gremlins or should they be utilized, which were on my case, no it doesn't. Does it say in the wiki that openrc conflicts with runit-artix? Quite the opposite, it says IF you want to remove openrc and leave runit, you should add a modification in grub etc...
What is it in wiki that makes you think I did not read or follow?
Title: Re: [TRACKER] Runit support
Post by: konimex on 21 April 2018, 12:38:13
The wiki says nothing about invalid pkgs in the repository and the only mention of -4 in the wiki is a coincidental match in the uuid example. It says in the wiki that there are pkgs in gremlins or should they be utilized, which were on my case, no it doesn't.
The wiki didn't say anything about gremlins. Neither did the wiki mentions -4.
Does it say in the wiki that openrc conflicts with runit-artix? Quite the opposite, it says IF you want to remove openrc and leave runit, you should add a modification in grub etc...
The wiki was intended to follow stable releases, not testing.
The wiki also never said "IF you want to remove openrc", but to use runit as your init system.
But if you look at the PKGBUILD (or even take a careful look at pacman since if you installed openrc the conflict will trigger), it does conflict with runit-artix. https://github.com/artix-linux/packages/blob/master/runit-artix/repos/testing-x86_64/PKGBUILD#L13
In the next packaging, both OpenRC and runit-artix will depend on one package which handles shutdown/halt/poweroff/reboot, but testing will be needed.
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 21 April 2018, 20:19:52
Quote
The wiki was intended to follow stable releases, not testing.
Ok, I don't understand, just yesterday you were telling me the right package (20180414-4) should be in gremlins but the repository is not updated yet, now you are saying it is based on stable? So 20180414-1 would have been fine it was 20180414-2 that messed me up?
If so, then I just picked the wrong damn day to try runit, didn't I?
For the rest of you not knowing what we are talking about, up until 36 hrs ago the pkg in gremlins was "a faulty one", what other faulty packages were there in gremlins since 4/16?
Ok, I don't understand, just yesterday you were telling me the right package (20180414-4) should be in gremlins but the repository is not updated yet, now you are saying it is based on stable?
It's the wiki page that is based on stable. But the right unstable package is on gremlins (-4).
So 20180414-1 would have been fine it was 20180414-2 that messed me up?
Yes.
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 22 April 2018, 12:32:51
Ok, I managed by going back and forth to get it back and it is booting fine now, although my networking is still a mess and I need to clear this out still. I will start another topic but under the runit hierarchy as it pertains to problems that developed from the runit transition. Right now I have inet4 and inet6 but I have 3 lines of commands in autostart to get to have network access after X start. Which means at console at stage 2 I have no access unless I run those commands.
Ram use is comparable to that with OpenRC, by far higher than it is with Void with about the same exact things running on start. To me that translates to the need to strip unnecessary crud off of it.
While utilizing some of the instructions systemd-free.artixlin... for moving from that "other" init system into OpenRC, sddm and xorg settings went out of wack. I was trying to go "back there" so I can move forward again. I am still running on Gremlins and I will continue to report on development. Right now I feel like the basement got flooded and I have just been able to move the water out but there is work to do.
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 24 April 2018, 22:19:36
On the rc.conf file why can't there be options of what to run on stage 1 and what not? (ie lvm, swap, btrfs, raid, etc)
# Boot with lvm support [yes|no] # Do not forget to remake your initramfs with lvm2 hook on it USELVM=no
#swap support [yes|no] USESWAP=yes
#enable cgroups [yes|no] CGROUPS=yes
Instead we get just error messages with runit of things that may not apply to our system. Now I understand that you don't do runit development here, you just apply what comes from upstream, but can there be a modification?
Title: Re: [TRACKER] Runit support
Post by: Dudemanguy on 24 April 2018, 23:04:03
There are shell scripts in /etc/runit/core-services/ that are executed as stage one. I think every example you named is already handled by default (swap, the filesystems, etc.). Not sure about raid though, you might have to configure that one.
Title: Re: [TRACKER] Runit support
Post by: konimex on 25 April 2018, 00:18:26
# Boot with lvm support [yes|no] # Do not forget to remake your initramfs with lvm2 hook on it USELVM=no
#swap support [yes|no] USESWAP=yes
#enable cgroups [yes|no] CGROUPS=yes
Instead we get just error messages with runit of things that may not apply to our system. Now I understand that you don't do runit development here, you just apply what comes from upstream, but can there be a modification?
I simply think it isn't necessary.
If you look carefully into our filesystems stage1 (https://github.com/artix-linux/runit-artix/blob/master/core-services/03-filesystems.sh), some will only be triggered if certain binaries are there (read: you installed it through a package). If you don't use btrfs you can uninstall btrfs-progs. If you don't have LVM don't install lvm2.
I would consider it unnecessary bloat.
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 25 April 2018, 11:56:17
No I have run it with # .. same thing, but dbus is running, it is not like it isn't. If dbus wasn't running should I or should I not have had network on console. The problem was at the start of stage 2, not on desktop.
Here is some sv status now, when the problem is not there anymore, but what fixed it I am still trying to find out
No I have run it with # .. same thing, but dbus is running, it is not like it isn't. If dbus wasn't running should I or should I not have had network on console. The problem was at the start of stage 2, not on desktop.
Here is some sv status now, when the problem is not there anymore, but what fixed it I am still trying to find out
# sv status /etc/runit/runsvdir/default/* run: /etc/runit/runsvdir/default/acpid: (pid 602) 15668s run: /etc/runit/runsvdir/default/agetty-tty1: (pid 595) 15669s run: /etc/runit/runsvdir/default/agetty-tty2: (pid 581) 15669s run: /etc/runit/runsvdir/default/agetty-tty3: (pid 584) 15669s run: /etc/runit/runsvdir/default/agetty-tty4: (pid 582) 15669s run: /etc/runit/runsvdir/default/agetty-tty5: (pid 585) 15669s run: /etc/runit/runsvdir/default/agetty-tty6: (pid 583) 15669s run: /etc/runit/runsvdir/default/alsa: (pid 658) 15666s down: /etc/runit/runsvdir/default/avahi-daemon: 0s, normally up, want up run: /etc/runit/runsvdir/default/cronie: (pid 605) 15668s fail: /etc/runit/runsvdir/default/dbus: unable to change to service directory: file does not exist down: /etc/runit/runsvdir/default/dhclient: 1s, normally up, want up fail: /etc/runit/runsvdir/default/dhcp: unable to change to service directory: file does not exist run: /etc/runit/runsvdir/default/dhcpcd: (pid 603) 15668s fail: /etc/runit/runsvdir/default/dhcpd: unable to change to service directory: file does not exist down: /etc/runit/runsvdir/default/dhcpd4: 1s, normally up, want up down: /etc/runit/runsvdir/default/dhcpd6: 1s, normally up, want up run: /etc/runit/runsvdir/default/dmeventd: (pid 32448) 1268s down: /etc/runit/runsvdir/default/elogind: 0s, normally up, want up run: /etc/runit/runsvdir/default/haveged: (pid 645) 15667s down: /etc/runit/runsvdir/default/ip6tables: 1s, normally up, want up down: /etc/runit/runsvdir/default/iptables: 1s, normally up, want up down: /etc/runit/runsvdir/default/lm_sensors: 1s, normally up, want up fail: /etc/runit/runsvdir/default/lvm: unable to change to service directory: file does not exist fail: /etc/runit/runsvdir/default/lvm2: unable to change to service directory: file does not exist run: /etc/runit/runsvdir/default/lvmetad: (pid 654) 15666s run: /etc/runit/runsvdir/default/mdadm: (pid 642) 15667s run: /etc/runit/runsvdir/default/nfs-server: (pid 609) 15668s down: /etc/runit/runsvdir/default/ntpd: 1s, normally up, want up run: /etc/runit/runsvdir/default/rpcbind: (pid 601) 15668s run: /etc/runit/runsvdir/default/rsyncd: (pid 631) 15667s down: /etc/runit/runsvdir/default/sddm: 1s, normally up, want up run: /etc/runit/runsvdir/default/sshd: (pid 596) 15669s run: /etc/runit/runsvdir/default/statd: (pid 666) 15666s
If you really symlinked all directories in /etc/runit/sv to /run/runit/service, then you didn't install dbus-runit and NetworkManager-runit, plain and simple.
If you have both dbus and NetworkManager service running (and by running I meant properly in a runsv process) you should have something like this in your pstree -a output.
Note that there are two different dbus processes. One is a child process of a runsv process (PID 798) and one is a direct child of runit (PID 1274). The dbus process with PID 1274 are launched (in this case) by Firefox (and Firefox immediately closed after I manually killed the dbus process), this means that your "running" dbus process will listen to Firefox and only Firefox, and will not work with any other processes (elogind, NetworkManager, wicd, etc.)
So no. In your case, dbus is not running as a proper service. It is likely that you're not installing both dbus-runit and networkmanager-runit and you didn't enable both services (because the service doesn't even exist).
fail: /etc/runit/runsvdir/default/dbus: unable to change to service directory: file does not exist
Also, the problem is likely fixed by enabling the dhcpcd runit service.
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 25 April 2018, 19:11:02
What I did (remember the day the reps weren't working and got the bad runit-artix ---3 instead of 4) was to make a list of all the runscripts I had installed and find the corresponding -runit pkgs. Except for a few that had no match, I removed ALL the -openrc and replaced them with -runit + runit + runit-artix Then I had no network and decided to get rid of networkmanager Then I still had problems with dhcpd which was running, but something was missing and by enabling (linking all services I had installed and available somehow cured the network problem). I have no firefox, I have palemoon, which might be working the same way. But dbus-runit was installed all along. If I hadn't linked dbus or any of those other ones that produce the error it wouldn't show up in sv status when I run it for the whole run directory A week has gone by and the only thing I get is that I did something wrong, and I am not asking for blame, but I did follow ALL instructions on the wiki, just did it when a bad runit-artix file was in the repositories.
Now WHAT?
Title: Re: [TRACKER] Runit support
Post by: Dudemanguy on 25 April 2018, 19:47:07
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 25 April 2018, 22:20:41
Need I remind you that the installation does not have functionality problems now, but the way I fixed it was by linking pretty every service there was to the active directory I just replace some of the ids with 111s and 000s
$ sudo sv status * run: acpid: (pid 627) 1712s run: agetty-tty1: (pid 623) 1713s run: agetty-tty2: (pid 622) 1713s run: agetty-tty3: (pid 620) 1713s run: agetty-tty4: (pid 624) 1713s run: agetty-tty5: (pid 621) 1713s run: agetty-tty6: (pid 625) 1713s run: alsa: (pid 641) 1712s down: avahi-daemon: 1s, normally up, want up run: cronie: (pid 645) 1712s fail: dbus: unable to change to service directory: file does not exist down: dhclient: 1s, normally up, want up fail: dhcp: unable to change to service directory: file does not exist run: dhcpcd: (pid 642) 1712s fail: dhcpd: unable to change to service directory: file does not exist down: dhcpd4: 1s, normally up, want up down: dhcpd6: 1s, normally up, want up run: dmeventd: (pid 639) 1712s down: elogind: 1s, normally up, want up run: haveged: (pid 638) 1712s down: ip6tables: 1s, normally up, want up down: iptables: 1s, normally up, want up down: lm_sensors: 0s, normally up, want up fail: lvm: unable to change to service directory: file does not exist fail: lvm2: unable to change to service directory: file does not exist run: lvmetad: (pid 643) 1712s run: mdadm: (pid 636) 1712s run: nfs-server: (pid 646) 1712s down: ntpd: 1s, normally up, want up run: rpcbind: (pid 640) 1712s run: rsyncd: (pid 631) 1712s down: sddm: 1s, normally up, want up run: sshd: (pid 628) 1712s run: statd: (pid 632) 1712s
Title: Re: [TRACKER] Runit support
Post by: Dudemanguy on 25 April 2018, 23:02:27
Looking at that output, I honestly don't know how your system is running okay because it just looks completely broken to me. Here's my output right now (with admittedly much fewer services but you get the picture).
Looking at the output of the /run/runit/service directory, I don't know where in the world "dhcp", "dhcpd", "dhcpd4", "dhcpd6", "lvm", or "lvm2" came from. Those aren't proper names for any of those. The dhcpcd-runit package gives you the "dhcpcd" directory which is the correct one. It also looks like dbus and elogind are both down which is probably not good and will give you trouble later. Try force reinstalling the dbus-runit and elogind-runit packages. There may be some other things wrong in there but I don't use most of those services so I don't really know for sure.
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 25 April 2018, 23:27:12
I had already tried reinstalling, from what I had in cache. No difference. dbus now is giving me the correct output. What I did was using sv restart The screen turned black and everything controlling anything valished. I had to kill it with the button. When I rebooted dbus was running fine, (it was running before as well but was giving the error about directory not found, although it was there)? I tried the same with lvm* and dhcp* but no change. If dhcp is not running, although I see the processes going up and down the process list) how come I have a flawless connection now?
Title: Re: [TRACKER] Runit support
Post by: Dudemanguy on 26 April 2018, 00:29:53
You also have "dhcpcd" in your directory which is the correct name of the service (which is why you have internet). The other ones are extra folders you should get rid of. It's good that you have dbus working properly. Is elogind running ok now as well? If you get rid of those extra/unneeded directories ("dhcp", "dhcpd", "dhcpd4", "dhcpd6", "lvm", and "lvm2"), I think your output should be normal.
Title: Re: [TRACKER] Runit support
Post by: konimex on 26 April 2018, 03:28:47
What I did (remember the day the reps weren't working and got the bad runit-artix ---3 instead of 4) was to make a list of all the runscripts I had installed and find the corresponding -runit pkgs. Except for a few that had no match, I removed ALL the -openrc and replaced them with -runit + runit + runit-artix
runit-artix has nothing to do with this. We're talking purely about dbus-runit since your problem is with NetworkManager (and really, why go back to this thread when we have a separate thread). When you did something and you're corresponding with someone over the forums to troubleshoot your problem about your "network problems", you immediately notfiy them. You're a little too late.
But dbus-runit was installed all along. If I hadn't linked dbus or any of those other ones that produce the error it wouldn't show up in sv status when I run it for the whole run directory
fail: /etc/runit/runsvdir/default/dbus: unable to change to service directory: file does not exist
However, since your problem is resolved, I'm not replying to you anymore for this matter since this discussion is quickly turning into a flamefest (if it isn't a flamefest already).
Title: Re: [TRACKER] Runit support
Post by: fungalnet on 26 April 2018, 07:22:13
I am not worked up, because luckily I have another system to work with. If this was my only system and it was down for a week I would be. The question does not pertain to networkmanager as networkmanager has been removed for a long time, I have mentioned it 3 times and it is nowhere in the output, why bring it up.
Following the steps, even with a bad runit-artix in the repository which was unfortunate, I installed all the *-runit pkgs that replaced the -openrc packages. Then linked them to run/runit as it is desrcibed. Why did I get those errors and how come they go away when I use sv restart? Is using restart a way that runit redefines where things are and discovers directories that are there but it thought as missing? Because I sure didn''t change anything else for it to find dbus, even though dbus-daemon was started as soon as X went up. I could see it on conky without even starting a terminal.
Since in actual working on the system it seems functional, despite of what @Dudemanguy says about being broken, I may have too many services up, which may be a ram problem, I don't have the expertise to say what is needed and what not. I'd say based on this experience there is a whole section in the wiki that is missing.
Maybe there is a whole other chapter for that matter and I only did this once. Since there may be a runit.iso coming up, how does one go from runit to openrc? In the same fashion there should be a little more analysis that fits every system, to switch init systems without altering the rest of the system further. What services exactly are under openrc handling that should translate to active runit services. Obviously having a runscript pkg installed does not mean it is a necessary idling service that is needed to be active on boot.
Title: Re: [TRACKER] Runit support
Post by: konimex on 28 April 2018, 02:35:02
ATTENTION TO ALL RUNIT USERS:
See announcement (https://forum.artixlinux.org/index.php/topic,520.new.html)
Since this thread has served its purpose, I'm going to close this thread by the time runit-artix-20180414-9 lands in [system].
Title: Re: [TRACKER] Runit support
Post by: konimex on 29 April 2018, 15:37:48
Before we close this thread, turns out there is two more important announcements following feedback from both devs and users alike.
Note: All of the following only happened in [gremlins].
1. runit and runit-artix have been combined into a single package: runit. 2. elogind-runit and dbus-runit have been updated.
Before you upgrade elogind-runit, dbus-runit, and runit, please make sure to do the following (if and only if you're in [gremlins]).
Do the following commands (if and only if you activated the services)
If you're using Xorg, it will close. This is normal. Proceed into tty (tty2-6).
After that you can do an upgrade to elogind-runit, dbus-runit and the runit package itself as normal.
It may take a while to for the mirrors to reach our main repo to fetch the packages (dbus-runit-20180429-2, elogind-runit-20180429-2, runit-2.1.2-5) so please be patient.
Also, I won't be available until this Friday for personal reasons. I'm sorry for my unavailability but if there's any issue I'll fix it after Friday.
Title: Re: [TRACKER] Runit support
Post by: konimex on 03 May 2018, 13:12:28
This thread is now locked since it has served its purpose. Any new announcements in runit systems will be posted in a new thread.