- This topic has 6 replies, 5 voices, and was last updated Apr 2-1:47 pm by Brian Masinick.
April 26, 2020 at 3:22 am #35335Memberxinomilo
really minor, but needrestart doesn’t work well with runit. today’s upgrade example :
invoke-rc.d ntp restart
Can’t exec “invoke-rc.d”: No such file or directory at /usr/sbin/needrestart line 1080, <STDIN> line 18.
still learning about runit, but
sv restart ntpdoesn’t work either cause there’s no such daemon in /etc/sv :
sv restart ntp
fail: ntp: unable to change to service directory: file does not exist
it works by running
do you think this could be filed as a debian bug in needrestart?
i guess daemons need to support other inits too (add service in /etc/sv ? ), or needrestart to try available options depending on init/daemon..
April 26, 2020 at 5:55 am #35340Memberfungalnet
- This topic was modified 1 year, 1 month ago by xinomilo.
I tried runit antix when that first image came out but I’ve forgotten its peculiarities since then. Then I transformed the same as a test bed to see how it runs with s6 and 66.
I think you are mixing sysv functionality with runit and some of those missing errors you get is from missing sysv scripts. Between the void wiki and the artix wiki on runit I think you can deduce more on how runit works. Forget debian, the debian part exists at a lower level, beyond the init and service management.
Καλή και αγωνιστική πρωτομαγιάApril 26, 2020 at 6:29 am #35341Forum Adminanticapitalista
As fungalnet says, Debian (and hence antiX) runit is far from complete, in fact it still relies on sysvinit scripts in /etc/init.d to start/restart/stop services. Hence the need to run /etc/init.d/app restart
Using sv commands will not work without runit versions of the sysvinit scripts.
runit scripts provided by void and/or artix do not work well either (on antiX).
So, getting runit to work on antiX in a similar way to how it works on artix and void will need a lot of work.
The same applies to S6 and 66 (especially since I can’t seem to get it to work on antiX unlike fungalnet).
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.April 26, 2020 at 6:47 am #35345Memberxinomilo
thanks both for your answers, will probably try some artix scripts in the future too, while trying to learn more about runit.
καλή εργατική πρωτομαγιά σε όλ@ς!May 17, 2020 at 1:07 pm #36041ModeratorBrian Masinick
I didn’t look into sv commands, but I still have a runit version of antiX that’s as up to date as the current packages offer.
While I don’t use sv and I frankly didn’t know about it, I do not have any problems using the software. I simply logout or shutdown when I’m done, but I typically use something like telinit to change run levels; I haven’t deeply investigated whether any functionality has changed in this regard, but I haven’t run across any issues and I do use it on almost a daily basis. MX Linux, regular antiX and antiX runit are the distributions I use most often. I’m using MX at the moment.
Brian MasinickApril 2, 2021 at 4:30 am #56929Memberwildstar84
While I don’t know what all sv can do, but for this particular case, wouldn’t a short bash script named “sv” that does (at minimum) something like:
(I’m sure one could make it alot more elaborate, if needed) basically work if you just want to use sv for restarting stuff? Just sayin’April 2, 2021 at 1:47 pm #56951ModeratorBrian Masinick
Running /etc/init.d/ntp restart was mentioned in post number 35335, so yes, doing something to allow arguments to start various init scripts (and add optional code to test various scenarios is certainly possible.
I personally don’t see any need for additional tools. I’ve been using runit with IceWm for a while and I have no difficulty at all logging out of IceWm, rebooting or shutting down.
Feel free to do something else to suit your specific interests.
- You must be logged in to reply to this topic.