You are not logged in.
If it possible, how do this?
Thanks.
Offline
Not sure if this helps, but: have you tried dpkg -reconfigure ?
Offline
Thanks for reply
Are you mean install runit and do dpkg-reconfigure openrc or dpkg-reconfigure runit?
Is it safe, i am aware that i can broke os by this commands?
Offline
Haven't actually tried to change the init system after the install.
And after some thinking, update-alternatives sounds more like what deepforest is after.
Offline
Hi,
If it possible, how do this?
try the following
apt-get install runit-init
and then reboot the system
reboot
if plain 'reboot' doesn't work you may have to call
/usr/sbin/openrc-shutdown with appropriate options to reboot into runit
I tested sysv --> runit and going back to sysv, never tested from
openrc but it should work.
Best,
Lorenzo
Offline
@Lorenzo
Thanks man!
it seems to have worked But i not feeling any difference, only boot log looks another.
its was easy.
And to move back i must uninstall runit-init and make dpkg-reconfigure openrc or reinstall openrc?
Last edited by deepforest (2024-04-25 20:48:33)
Offline
it seems to have worked smile But i not feeling any difference, only boot log looks another.
its was easy.
did you installed also runit-services package?
And to move back i must uninstall runit-init and make dpkg-reconfigure openrc or reinstall openrc?
I don't think dpkg-reconfigure has any use here; reinstall openrc + sysvinit-core should do it.
Then, to reboot from runit into openrc call
/lib/runit/runit-init 6
Offline
did you installed also runit-services package?
idk, only this apt-get install runit-init
I don't think dpkg-reconfigure has any use here; reinstall openrc + sysvinit-core should do it.
Then, to reboot from runit into openrc call
Thanks, reinstall only openrc? Why you mentioned +sysvinit-core?
Offline
Thanks, reinstall only openrc? Why you mentioned +sysvinit-core?
Originally openrc used to run on top of sysvinit, so you need sysvinit-core + openrc;
recently openrc got it's own init, so it can run without sysvinit.
I'm not sure what the openrc deb package does, if you install openrc without sysvinit-core
just make sure that /sbin/init points to somewhere that make sense for openrc, like
maybe
/usr/sbin/openrc-init
I never used openrc so I'm more or less guessing the above.
Offline
i am trying move back to open rc,
already reinstall openrc and sysvinit-core,
system booting good in openrc,
but why i see this?
root@home:/home/freeartist-devuan# dpkg-reconfigure openrc
/usr/sbin/dpkg-reconfigure: openrc is broken or not fully installed
root@home:/home/freeartist-devuan#
freeartist-devuan@home:~$ sudo su
[sudo] password for freeartist-devuan:
root@home:/home/freeartist-devuan# dpkg-reconfigure openrc
/usr/sbin/dpkg-reconfigure: openrc is broken or not fully installed
root@home:/home/freeartist-devuan# apt install openrc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
openrc is already the newest version (0.45.2-2).
The following package was automatically installed and is no longer required:
sysuser-helper
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up openrc (0.45.2-2) ...
Add existing services ...
* rc-update: killprocs already installed in runlevel `recovery'; skipping
* rc-update: single already installed in runlevel `recovery'; skipping
* rc-update: bootlogs already installed in runlevel `recovery'; skipping
* rc-update: console-setup.sh already installed in runlevel `default'; skipping
* rc-update: binfmt-support already installed in runlevel `default'; skipping
* rc-update: mono-xsp4 already installed in runlevel `default'; skipping
* rc-update: pulseaudio-enable-autospawn already installed in runlevel `default'; skipping
* rc-update: rsyslog already installed in runlevel `default'; skipping
* rc-update: sudo already installed in runlevel `default'; skipping
* rc-update: uuidd already installed in runlevel `default'; skipping
* rc-update: service `acpid' is not executable
dpkg: error processing package openrc (--configure):
installed openrc package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of sysvinit-core:
sysvinit-core depends on sysv-rc | openrc | file-rc; however:
Package sysv-rc is not installed.
Package openrc is not configured yet.
Package file-rc is not installed.
dpkg: error processing package sysvinit-core (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
openrc
sysvinit-core
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@home:/home/freeartist-devuan#
Last edited by deepforest (2024-04-30 20:24:01)
Offline
it looks like there is a problem with openrc postinstall script, likely a bug. As already mentioned, I know very few about openrc so I don't have an explanation. I suggest you open a bug report on openrc package linking this page
Lorenzo
Offline
A file that is not executable on /etc/init.d/ breaks openrc installation for some reason, needs to make executable first or move to another directory
Offline
A file that is not executable on /etc/init.d/ breaks openrc installation for some reason, needs to make executable first or move to another directory
Please, next time, report bug like this! Nobody reports = nobody fixes.
It's now fixed in unstable/openrc 0.54-2
https://bugs.debian.org/cgi-bin/bugrepo … ug=1070167
Offline