<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=3628&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [HowTo] runit-init as PID1]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3628</link>
		<description><![CDATA[The most recent posts in [HowTo] runit-init as PID1.]]></description>
		<lastBuildDate>Fri, 23 Apr 2021 16:11:31 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [HowTo] runit-init as PID1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=29301#p29301</link>
			<description><![CDATA[<p>Also worth noting that the beowulf installer lets you select runit as the system init.</p>]]></description>
			<author><![CDATA[dummy@example.com (siva)]]></author>
			<pubDate>Fri, 23 Apr 2021 16:11:31 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=29301#p29301</guid>
		</item>
		<item>
			<title><![CDATA[Re: [HowTo] runit-init as PID1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28605#p28605</link>
			<description><![CDATA[<p>Back in June I posted in this thread and said there needs to be a live-config-runit package. Well, now there is. I forked live-config. The version currently in ceres includes live-config-runit. (11.0.2-1+devuan2). It will move into chimaera soon.</p><p>IMPORTANT NOTE:&#160; If you have live-config installed, when you try to install runit-init, apt will want to remove live-config (and refractasnapshot, if that&#039;s installed.) The way to get around this is to include live-config-runit in the command to install runit-init. </p><p>For beowulf, I just made an easy single live-config-runit package that isn&#039;t in the repo. You can get that here: <a href="http://distro.ibiblio.org/refracta/files/extra_packages/live-config-runit_5.2019%2Brefracta10u1_all.deb" rel="nofollow">http://distro.ibiblio.org/refracta/file … u1_all.deb</a>&#160; Install it before you try to install live-config and after you install runit. (i.e. stuff might get put on the autoremove list. Just reinstall things if you need to.)</p><p>Another note: I did not replace the live-config init script with a run script. That&#039;s a project for a later date.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Mon, 29 Mar 2021 14:03:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28605#p28605</guid>
		</item>
		<item>
			<title><![CDATA[Re: [HowTo] runit-init as PID1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28146#p28146</link>
			<description><![CDATA[<div class="quotebox"><cite>calibius wrote:</cite><blockquote><div><p>then did as Head_on_a_Stick said and </p><div class="codebox"><pre><code>gpasswd -a $USER input </code></pre></div><p> because I&#039;m running headless over SSH.&#160; Not sure if this is strictly necessary?</p></div></blockquote></div><p>No, it isn&#039;t. Don&#039;t add users to the input group unless you have to.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 13 Mar 2021 16:35:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28146#p28146</guid>
		</item>
		<item>
			<title><![CDATA[Re: [HowTo] runit-init as PID1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28061#p28061</link>
			<description><![CDATA[<p>Having reported some problems with <span class="bbc">shutdown</span>, I have just discovered that the version supplied with <span class="bbc">runit-init</span> does work, but with no arguments!</p><div class="codebox"><pre><code>shutdown</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Thu, 11 Mar 2021 20:21:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28061#p28061</guid>
		</item>
		<item>
			<title><![CDATA[Re: [HowTo] runit-init as PID1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=27947#p27947</link>
			<description><![CDATA[<div class="quotebox"><cite>john2009w wrote:</cite><blockquote><div><p>When I ran `# apt install runit-init`, it said:</p><div class="codebox"><pre><code>...
dpkg: sysvinit-core: dependency problems, but removing anyway as you requested:
 init depends on sysvinit-core | runit-init: however:
  Package sysvinit-core is to be removed.
  Package runit-init is not installed.
...
Unpacking runit-init (2.1.2-36) ...
Setting up runit-init (2.1.2-36) ...</code></pre></div><p>And there was no question asked like, &quot;To continue type in the phrase&quot; etc. Is this normal?</p><p>However I ran `reboot` and it said at the end:</p><div class="codebox"><pre><code>Will now restart.
Give root password for maintenance
(or press Control-D to continue):</code></pre></div></div></blockquote></div><p>New to Devuan, but I finally got fed up with Systemd on my Raspberry Pi, so I just installed Beowulf on my Raspberry Pi 3B (rev1.2). I used the images supplied at <a href="https://arm-files.devuan.org/" rel="nofollow">https://arm-files.devuan.org/</a> which are super easy to use, but do not offer options to install runit during install. So I just switched following the OPs instructions and I had this same error message:</p><div class="codebox"><pre class="vscroll"><code>sudo apt install runit-init
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  fgetty getty-run runit runit-helper sysuser-helper
The following packages will be REMOVED:
  sysvinit-core
The following NEW packages will be installed:
  fgetty getty-run runit runit-helper runit-init sysuser-helper
0 upgraded, 6 newly installed, 1 to remove and 0 not upgraded.
Need to get 199 kB of archives.
After this operation, 418 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.devuan.org/merged beowulf/main arm64 runit-helper all 2.8.6 [4,900 B]
Get:2 http://deb.devuan.org/merged beowulf/main arm64 sysuser-helper all 1.3.3 [3,844 B]
Get:3 http://deb.devuan.org/merged beowulf/main arm64 runit arm64 2.1.2-25 [109 kB]
Get:4 http://deb.devuan.org/merged beowulf/main arm64 getty-run all 2.1.2-25 [18.3 kB]
Get:5 http://deb.devuan.org/merged beowulf/main arm64 runit-init arm64 2.1.2-25 [40.1 kB]
Get:6 http://deb.devuan.org/merged beowulf/main arm64 fgetty arm64 0.7-5 [22.2 kB]
Fetched 199 kB in 2s (114 kB/s)
Selecting previously unselected package runit-helper.
(Reading database ... 65737 files and directories currently installed.)
Preparing to unpack .../runit-helper_2.8.6_all.deb ...
Unpacking runit-helper (2.8.6) ...
Selecting previously unselected package sysuser-helper.
Preparing to unpack .../sysuser-helper_1.3.3_all.deb ...
Unpacking sysuser-helper (1.3.3) ...
Selecting previously unselected package runit.
Preparing to unpack .../runit_2.1.2-25_arm64.deb ...
Unpacking runit (2.1.2-25) ...
Selecting previously unselected package getty-run.
Preparing to unpack .../getty-run_2.1.2-25_all.deb ...
Unpacking getty-run (2.1.2-25) ...
dpkg: sysvinit-core: dependency problems, but removing anyway as you requested:
 init depends on sysvinit-core | runit-init; however:
  Package sysvinit-core is to be removed.
  Package runit-init is not installed.
...</code></pre></div><p>BEFORE I restarted, I noticed it hadn&#039;t completely removed sysvinit, so manual removed it: </p><div class="codebox"><pre><code>sudo apt remove sysvinit init</code></pre></div><p>then reinstalled runit-init: </p><div class="codebox"><pre><code>sudo apt install runit-init</code></pre></div><p>which completed without errors, and then did as Head_on_a_Stick said and </p><div class="codebox"><pre><code>gpasswd -a $USER input </code></pre></div><p> because I&#039;m running headless over SSH.&#160; Not sure if this is strictly necessary?<br />Not sure what you would have to do if you had restarted already... glad I caught it beforehand.</p>]]></description>
			<author><![CDATA[dummy@example.com (calibius)]]></author>
			<pubDate>Mon, 08 Mar 2021 06:28:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=27947#p27947</guid>
		</item>
		<item>
			<title><![CDATA[Re: [HowTo] runit-init as PID1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=27901#p27901</link>
			<description><![CDATA[<p>On a fresh install of Chimaera in a VM under Xen,<br /><a href="https://dev1galaxy.org/viewtopic.php?pid=27870#p27870" rel="nofollow">https://dev1galaxy.org/viewtopic.php?pid=27870#p27870</a><br />I tried switching to <span class="bbc">runit-init</span>.</p><div class="codebox"><pre><code>apt install runit-init</code></pre></div><p>It was still running with the old init so I wanted to reboot it. From Dom0 I tried to shutdown via Xen</p><div class="codebox"><pre><code>xl shutdown chimaera</code></pre></div><p>which had no effect, so I hit it with a bigger hammer</p><div class="codebox"><pre><code>xl destroy chimaera</code></pre></div><p>which did stop it!</p><p>On booting it again it recovered the disk from the journal, but did come up.<br />It gave no login prompt, which was due to my not having set up the virtual console for Xen, <span class="bbc">hvc0</span>.<br />However, reconnecting to Chimaera via ssh and VNC worked as normal.</p><p>The only services running under <span class="bbc">runsvdir</span> are <span class="bbc">getty</span> and <span class="bbc">ssh</span>.<br />To set up <span class="bbc">hvc0</span> as the console, I copied the set up for <span class="bbc">tty1</span>.</p><div class="codebox"><pre><code>cd /etc/sv/
cp -rp getty-tty1/ getty-hvc0
cd getty-hvc0</code></pre></div><p>edit run and finish to change tty1 to hvc0</p><div class="codebox"><pre><code>rm supervise
ln -s /run/runit/supervise/getty-hvc0 supervise
cd /etc/sv
runsv getty-hvc0</code></pre></div><p>This does not return, which I believe is correct, and the login prompt now appears on the console (the window on Dom0)</p><p>To set it up to work automatically needs it linked in to <span class="bbc">/etc/service</span></p><div class="codebox"><pre><code>cd /etc/service
ln -s /etc/sv/getty-hvc0/ .</code></pre></div><p>The other glitch is shutting it down.</p><p>Using LXQt to shutdown closes the LXQt window but I was still logged in on the console.</p><div class="codebox"><pre><code>shutdown -hH now</code></pre></div><p>did not shut it down.<br />Coming back to Dom0 I was able to give the command to Xen to shut it down</p><div class="codebox"><pre><code>xl shutdown chimeara</code></pre></div><p>which did work.<br />Having booted it up again, I was able to shut down with</p><div class="codebox"><pre><code>init 0</code></pre></div><p>I noticed that <span class="bbc">/sbin/shutdown</span> is a link to <span class="bbc">/lib/runit/shutdown</span></p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Fri, 05 Mar 2021 11:49:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=27901#p27901</guid>
		</item>
		<item>
			<title><![CDATA[Re: [HowTo] runit-init as PID1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=27301#p27301</link>
			<description><![CDATA[<p>If someone wants to experiment with additional runscripts, see<br /><a href="https://dev1galaxy.org/viewtopic.php?id=3716" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=3716</a><br />post #7</p><p>Lorenzo</p>]]></description>
			<author><![CDATA[dummy@example.com (Lorenzo)]]></author>
			<pubDate>Tue, 09 Feb 2021 09:51:11 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=27301#p27301</guid>
		</item>
		<item>
			<title><![CDATA[Re: [HowTo] runit-init as PID1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25462#p25462</link>
			<description><![CDATA[<p>By the way I was wondering which Debian packages already provides runit scripts in testing:</p><div class="codebox"><pre><code>apt-file search /etc/sv | grep -o &quot;.*:&quot; | sort | uniq
acpid:
axfrdns:
bcron:
dnscache:
dnsmasq:
getty-run:
git-daemon-run:
irqbalance:
mini-httpd-run:
mongrel2-run:
opendnssec-enforcer:
opendnssec-signer:
openssh-server:
rbldns:
remotetrx:
socklog-run:
svnkit:
svxlink-gpio:
svxlink-server:
svxreflector:
tinydns:
tor:
walldns:</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (thierrybo)]]></author>
			<pubDate>Sat, 24 Oct 2020 14:52:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25462#p25462</guid>
		</item>
		<item>
			<title><![CDATA[Re: [HowTo] runit-init as PID1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25451#p25451</link>
			<description><![CDATA[<p>Runit with runit-init for me was twice as fast as openrc. Hard to believe, but yeah it is. <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>It worked fine for me on both testing devuan and devuan beowulf, can&#039;t say if the others it works well on.</p><p>But, on devuan beowulf when you switch from openrc to runit and add runit-init and then try to go back for some reason to openrc, I once had some issues on beowulf.&#160; heh... weird stuff.&#160; </p><p>If you intend to install runit-init + runit the moment you install devuan beowulf, don&#039;t install openrc right off the bat. Unless you know something I don&#039;t... </p><p>That kind of thing caused me some issues once, where dependency hell got in the way...</p><p>PS, in my experience, runit + runit-init cut my boot time in half.&#160; and shutdown happens in a 1/3 less time if I recall correctly.</p>]]></description>
			<author><![CDATA[dummy@example.com (zapper)]]></author>
			<pubDate>Sat, 24 Oct 2020 00:26:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25451#p25451</guid>
		</item>
		<item>
			<title><![CDATA[Re: [HowTo] runit-init as PID1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25449#p25449</link>
			<description><![CDATA[<p>I confirm, installed it on Chimaera/Sysv init system, no &quot;Yes do as i say!&quot; message and I also had to use the power button.<br />For me there was only ssh as a true Runit service.</p><p>I played a bit with Runit on Void, and contrary to many comments I read, this is a full featured Runit. The few directories changes are just to be compliant with Filesystem Hierarchy Standard.</p><p>When&#160; comments say that Runit support is not complete in Debian, this is because these persons wait a full distro that choose Runit as a main init system and provide all init scripts for it. But as I think Devuan is a &quot;base&quot; for other distributions as Debian is and its goal is to stay an &quot;independent&quot; init distro, it is unlikely they can maintain init scripts for Openrc and Runit in addition to Sysv scripts. </p><p>So yes Runit in Debian just &quot;embed&quot; sysv scripts, but this is not a Debian hack, Debian just did what is described in Runit manual, in &quot;<a href="http://smarden.org/runit/replaceinit.html#sysv" rel="nofollow">Step 5: Service migration chapter</a>&quot;.</p><p>So if the goal is to use sv to manage all services, do not choose Debian/Devuan, otherwise it is fine for me.</p>]]></description>
			<author><![CDATA[dummy@example.com (thierrybo)]]></author>
			<pubDate>Fri, 23 Oct 2020 23:15:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25449#p25449</guid>
		</item>
		<item>
			<title><![CDATA[Re: [HowTo] runit-init as PID1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25220#p25220</link>
			<description><![CDATA[<p>so, had it in mind for months, finally switched to runit in a fully upgraded ceres. was using openrc before, so never seen any: &quot;Yes do as i say!&quot; messages during installation.<br />`apt install runit-init` , some packages were removed and then tried a reboot, but that got stuck for missing commands.. don&#039;t have the exact messages, but since all?/most daemons were closed and running system was missing some previously used programs after installation, that looked normal... so, shutdown using power button.<br />machine came up normally, boot seemed faster than usual, and everything still works.. <br />because this is debian runit, i only found 2 daemons with sv configured (tor + acpid), everything else still needs `service blah ...`. note that eg `service tor stop` doesn&#039;t work, one needs to run `sv stop tor` for that. so could be a fuzz with lots of daemons, when some will work with `sv`, but most still need `service`... <br />/etc/sv for available services, /var/log/runit/ contains logs for these, everything else is working/logging as before. </p><p>(RTFM) will have to do some reading along the way to also check why sv stopped $service still keeps a `runsv $service` &amp; `svlogd -tt $service` running.<br />and also lookup runit scripts for more daemons.</p>]]></description>
			<author><![CDATA[dummy@example.com (xinomilo)]]></author>
			<pubDate>Sun, 11 Oct 2020 21:17:13 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25220#p25220</guid>
		</item>
		<item>
			<title><![CDATA[Re: [HowTo] runit-init as PID1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23791#p23791</link>
			<description><![CDATA[<p>Using Runit, I was also experiencing abrupt freezing for a while. I understood what I was getting myself into, but I didn&#039;t seem to find much of a solution. This was only affecting one of my machines, whereas the others were also on the Chimaera branch. Ever since I &quot;moved&quot; all my machines to Ceres, I&#039;ve been running the system for three days straight without issue. I keep an eye out for faults, yet my machines couldn&#039;t be any more stable!</p>]]></description>
			<author><![CDATA[dummy@example.com (brocashelm)]]></author>
			<pubDate>Sun, 02 Aug 2020 11:06:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23791#p23791</guid>
		</item>
		<item>
			<title><![CDATA[Re: [HowTo] runit-init as PID1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23577#p23577</link>
			<description><![CDATA[<div class="quotebox"><cite>Lorenzo wrote:</cite><blockquote><div><p>This permission issue is new to me but is bad enough that I need to double check if this can be reproduced in Debian</p></div></blockquote></div><p>I can confirm that the user needs to be added to the <em>input</em> group to get the keyboard &amp;c working in Debian buster if an alternative init system is used. I&#039;ve tested with runit-init, sysvinit and openrc-init as PID1.</p><div class="quotebox"><cite>Lorenzo wrote:</cite><blockquote><div><p>I&#039;m not surprised that Xorg is not working with runit, without elogind or any other means that gives permission on input devices to your user</p></div></blockquote></div><p>In my test elogind was installed and the <span class="bbc">elogin-daemon</span> process was running.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Tue, 21 Jul 2020 17:30:57 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23577#p23577</guid>
		</item>
		<item>
			<title><![CDATA[Re: [HowTo] runit-init as PID1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23569#p23569</link>
			<description><![CDATA[<p>Just run into this thread by chance. There is very few interest in runit in Debian right now so maybe is convenient to drop some howto directly here where it looks there are people available to do some testing..</p><div class="quotebox"><blockquote><div><p>After the reboot when I login on tty1 and run startx, it shows tint2 panel and everything, but I can&#039;t move the mouse cursor, can&#039;t do anything with keyboard and the machine freezes!! Please help!</p></div></blockquote></div><div class="quotebox"><blockquote><div><p>Yes, I&#039;ve just confirmed that — the user must be in the input group if a display manager isn&#039;t used.</p></div></blockquote></div><p>This permission issue is new to me but is bad enough that I need to double check if this can be reproduced in Debian and possibly fix there. I&#039;m not sure though, could be also something that is caused by some Debian-Devuan delta.</p><div class="quotebox"><blockquote><div><p>When I ran `# apt install runit-init`, it said:</p><p>...<br />dpkg: sysvinit-core: dependency problems, but removing anyway as you requested:<br /> init depends on sysvinit-core | runit-init: however:<br />&#160; Package sysvinit-core is to be removed.<br />&#160; Package runit-init is not installed.<br />...<br />Unpacking runit-init (2.1.2-36) ...<br />Setting up runit-init (2.1.2-36) ...</p></div></blockquote></div><p>Besides sysvinit-core, was any other package removed? <br />I&#039;m not surprised that Xorg is not working with runit, without elogind or any other means that gives permission on input devices to your user, but what puzzles me is how was working with sysvinit..</p><p>Lorenzo</p>]]></description>
			<author><![CDATA[dummy@example.com (Lorenzo)]]></author>
			<pubDate>Tue, 21 Jul 2020 11:16:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23569#p23569</guid>
		</item>
		<item>
			<title><![CDATA[Re: [HowTo] runit-init as PID1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23533#p23533</link>
			<description><![CDATA[<div class="quotebox"><cite>john2009w wrote:</cite><blockquote><div><p>using a dm is a must when switching to runit (to avoid problems that needs manual changes otherwise).</p></div></blockquote></div><p>Yes, I&#039;ve just confirmed that — the user must be in the <em>input</em> group if a display manager isn&#039;t used.</p><p>I&#039;ve added a note to the OP.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 19 Jul 2020 11:58:35 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23533#p23533</guid>
		</item>
	</channel>
</rss>
