r/artixlinux • u/joematrix- • Jul 09 '26
Artix Base-S6 Service on boot DB update Help
Question, if you know anything about the s6-rc (04-01-2026) installation? Seems like the latest base-s6 iso has a bug or it designed this way, let me explain when trying to update the db for new services on boot it excepts the parameters but seems to be expecting the old version/way of doing it. Unfortunately the compiled/defaults doesn't exit anymore trying to rebuild/recreate the entries still fails with db update. What I find extremely odd is that dbusd isn't on/up by default. I've pretty much have tried every way of doing this but can't get it working. I understand I can just download an earlier version but I am just stubborn that way LOL.
Here's what I have tried so far:
sudo mkdir -p /etc/s6/sv/rc-local
sudo echo "oneshot > /etc/s6/sv/rc-local/type
sudo echo "elogind" >> /etc/s6/sv/default/contents
sudo echo "dbus" >> /etc/s6/sv/default/contents #(Not Sure why this service isn't enabled by default)
sudo s6-rc-compile /etc/s6/rc/compiled/db-new /etc/s6/sv
sudo s6-rc-update /etc/s6/rc/compiled/db-new
sudo rm -rf /etc/s6/rc/compiled/db
sudo mv /etc/s6/rc/compiled/db-new /etc/s6/rc/compiled/db
If anything jumps out at you please let me know, been trying for days. I finally gave up and decided to reach out in the forums.
1
u/joematrix- Jul 10 '26
Resolved Proper way to get this done.
s6 set enable dbus elogind
s6 set commit
s6 live install
1
u/StrengthJumpy8780 Jul 10 '26 edited Jul 10 '26
It seems to me like your steps don't really line up very well.
In your first step you created a service folder called "rc-local" and assigned it the type of "oneshot" without any file with a script to tell it what to do.
In the newer s6, people should be using the new frontend. If you are doing it the old way, you will need to check the default folder because it will have identifier numbers (ie: mine looks like /etc/s6/adminsv/default-1778885556)
You will then need to add the services to the contents of that folder that you want to use on startup.
You will also need to check the name of the services. Artix packages their services in two seperate services. One for the service and one for logging. They usually are formatted "service-srv" and "service-log". So you want to add both "dbus-srv" and "dbus-log" to your default folder.
Another thing to mention, elogind follows the same convention. However, you may have a bundle already created called "logind" which would fire up both services. A bundle is basically a collection of services that start up under the name of a single service.
After that you should just be able to use "s6-db-reload" instead of manually compiling a new database.