Bug#727708: additional OpenRC information: OpenRC now in Debian Experimental!
On 01/03/2014 01:25 AM, Russ Allbery wrote: > As I mentioned in some of my previous notes, I was unable to evaluate > OpenRC in a meaningful way during my general experiments for a few > reasons. My impression was formed based on previous discussion and what > documentation I could find, which was fairly minimal. > > Thomas Goirand sent me considerably more information, including some > details about OpenRC project goals that corrects information in my > original writeup. With his permission, I'm including that here for the > benefit of everyone else who is following this debate. > > Thomas, please follow up with anything that I left out or anything else > that you think people should be aware of. Well, there's something that people should be aware of... OpenRC is now in Debian experimental! \o/ Also: * I have solved the problem with reinstalling the initscript package (it was only a missing /etc/runlevels/single folder, which by the way is now populated with the correct symlinks so single user mode also works from now on). * The first reboot can be done using: for file in /etc/rc0.d/K*; do s=`basename $(readlink "$file")` /etc/init.d/$s stop done That fits on a single line, so the postinst script of OpenRC just warns that this command should be performed by the user when migrating from sysv-rc to OpenRC. When doing this, the first shutdown is kind of clean. While not perfect (yet), that's a workaround. Unfortunately, with sysv-rc, there's no way to know which daemon is started, so it's also impossible to stop them cleanly. Though probably attempting to stop them all should work. I'm open to any suggestion to make this better, and maybe have a way to build a script that users could call directly. Note that when migrating back from OpenRC to sysv-rc, there's no such a problem, it just works (since sysv-rc is stateless). I of course welcome anyone to try OpenRC and report bugs. Cheers, Thomas Goirand (zigo) P.S: I'd like to publicly thank Patrick Lauer, Benda (李明宇), Bill Wang, Roger Leigh, WilliamH & qnikst (sorry, I only know the IRC nicks of these last 2 persons) for their help and support when porting OpenRC to Debian. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#727708: additional OpenRC information: OpenRC now in Debian Experimental!
Thomas Goirand writes ("Bug#727708: additional OpenRC information: OpenRC now in Debian Experimental!"): > OpenRC is now in Debian experimental! \o/ Good, thanks. > I of course welcome anyone to try OpenRC and report bugs. Can you point me to the relevant reference documentation ? Thanks, Ian. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#727708: additional OpenRC information: OpenRC now in Debian Experimental!
On 01/04/2014 01:42 AM, Ian Jackson wrote: > Thomas Goirand writes ("Bug#727708: additional OpenRC information: OpenRC now > in Debian Experimental!"): >> OpenRC is now in Debian experimental! \o/ > > Good, thanks. > >> I of course welcome anyone to try OpenRC and report bugs. > > Can you point me to the relevant reference documentation ? > > Thanks, > Ian. Hi Ian, I'm not sure what kind of doc you are looking for. If you want to know how to install it, well, it's just an "apt-get install openrc" plus a tricky first reboot. Otherwise, read further. You can first have a look over here: https://wiki.debian.org/OpenRC Though I just have made some edits to make it up-to-date, that page is still a work in progress, and would need much improvements, like how to write runscripts and so on. There's also this from Gentoo upstream: http://wiki.gentoo.org/wiki/OpenRC As much as I know, most of the available documentation is available from the set of man pages from the OpenRC project. Here's a list of available manpages: einfo.3 openrc.8 rc_config.3 rc_find_pids.3 rc_runlevel.3 rc-service.8 rc_stringlist.3 service.8 openrc-run.8 rc_deptree.3 rc_plugin_hook.3 rc_service.3 rc-status.8 rc-update.8 start-stop-daemon.8 They are not all installed by the Debian package yet, so you may want to have a look in the man folder of the source package. You can to start reading the man page for openrc-run, which describe how to write OpenRC "runscripts". A runscript is what can replace init scripts, eg you would replace #!/bin/sh by #!/sbin/openrc-run. FYI, openrc-run is the new name of /sbin/runscript. It was renamed because of the clash with the command line from minicom. I guess we'll keep the therm "runscript" for a while still, even if it's really referring to "openrc-run" now. But probably, the most easy way to learn how to make runscripts is to read what's been done in Gentoo. Inside the openrc source package, under the init.d script, there's a bunch of runscripts which you can read as examples. When reading them, keep in mind that these are rather complex, and most of the daemons in Debian will not need that complexity. If you need to know more, let me know. Cheers, Thomas Goirand (zigo) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org