<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=5943&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Daedalus upgrade with runit-init]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=5943</link>
		<description><![CDATA[The most recent posts in Daedalus upgrade with runit-init.]]></description>
		<lastBuildDate>Fri, 01 Sep 2023 15:11:56 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Daedalus upgrade with runit-init]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=44007#p44007</link>
			<description><![CDATA[<p>One thing that I have been trying is to set up a symlink from <span class="bbc">/etc/init.d</span> to <span class="bbc">/usr/bin/sv</span>. This should mean that anything that uses a SysV init syntax should still work.</p><p>I have tried this on Postfix. As an extra backup I saved the old init.d scripts to <span class="bbc">/usr/local/etc/init.d</span></p><p>then :-</p><div class="codebox"><pre><code>root@fluorine:/etc/init.d# mv postfix .postfix
root@fluorine:/etc/init.d# ln -s /usr/bin/sv postfix

root@fluorine:/etc/init.d# ls -alF .postfix postfix
-rwxr-xr-x 1 root root 3368 Mar 16  2020 .postfix*
lrwxrwxrwx 1 root root   11 Sep  1 15:49 postfix -&gt; /usr/bin/sv*

root@fluorine:/etc/init.d# cd

root@fluorine:~# /etc/init.d/.postfix status
postfix is running.
root@fluorine:~# /etc/init.d/postfix status
run: postfix: (pid 1881) 6694s; run: log: (pid 1880) 6694s
root@fluorine:~# sv status postfix
run: postfix: (pid 1881) 6707s; run: log: (pid 1880) 6707s
root@fluorine:~# service postfix status
run: postfix: (pid 1881) 6718s; run: log: (pid 1880) 6718s</code></pre></div><p>So, this shows that calling up the old SysV init script does still work if you know where it is and with the old behaviour<br />Then if you use what looks like the <span class="bbc">postfix</span> script in <span class="bbc">init.d</span>, you get the same result as if you use <span class="bbc">sv</span> or <span class="bbc">service</span>.</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Fri, 01 Sep 2023 15:11:56 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=44007#p44007</guid>
		</item>
		<item>
			<title><![CDATA[Re: Daedalus upgrade with runit-init]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=44005#p44005</link>
			<description><![CDATA[<p>Yes, runit-init. I have the same symlinks for /sbin/init and /sbin/shutdown.</p><p>gettys and ssh had run scripts before the runit-services package existed. My daedalus-runit doesn&#039;t have that package. Last time I ran apt-upgrade on that VM was March 2022. It still has kernel 5.15.</p><p>My /usr/share/runit/meta has the same as yours plus acpid and irqbalance. I think I got the acpid scripts from the antix collection (run script is identical) but I don&#039;t know where the irqbalance script came from.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Fri, 01 Sep 2023 13:29:05 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=44005#p44005</guid>
		</item>
		<item>
			<title><![CDATA[Re: Daedalus upgrade with runit-init]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=44004#p44004</link>
			<description><![CDATA[<p>I have now re-booted with the Xen hypervisor and have fired up the test system so that I can examine it.</p><p>For the benefit of any innocent by-standers who are reading this, the &quot;official&quot; <span class="bbc">runit</span> scripts are installed in <span class="bbc">/usr/share/runit/sv</span> and also some in <span class="bbc">/usr/share/runit/meta</span>. The installation is then able to copy over required ones into <span class="bbc">/etc/sv</span>.</p><p>When I examine my test system, I can see from the time stamps on the files, that many files have been copied over to <span class="bbc">/etc/sv</span> during the installation. Importantly it did not copy over <span class="bbc">postfix</span>, as I had my own version in <span class="bbc">/etc/sv</span>, so it spotted this and didn&#039;t overwrite it. I had my own version of <span class="bbc">postgresql</span>, but that does not yet have an &quot;official&quot; set-up and my old version still works (sort of!).</p><p>I think that the <span class="bbc">preload</span> service may be new and this was set up automatically.</p><p>There also seems to be a new <span class="bbc">dbus.dep-fixer</span> which has been set up.</p><p>I also had a bunch of <span class="bbc">getty</span>s set up, which have been overwritten, updating what I think were the original &quot;official&quot; versions, although I tend to add <span class="bbc">--noclear</span> to tty1 and this has been overwritten.</p><p>I have two copies of <span class="bbc">dhclient</span> running. There is one running from the script in <span class="bbc">/etc/sv/dhclient</span>. There was a problem with this as it looks for its interface in <span class="bbc">/etc/sv/conf/interfaces</span>, which was set to <span class="bbc">eth1</span> and I had to change it to <span class="bbc">eth0</span>. I haven&#039;t yet tracked down where the other copy is being started from, but it seems to be early in the boot process.</p><p>I am not clear on the significance of <span class="bbc">/usr/share/runit/meta</span>, which contains <span class="bbc">default-syslog</span>, the <span class="bbc">getty</span>s and <span class="bbc">ssh</span>. These seem to have been copied over to <span class="bbc">/etc/sv</span>.</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Fri, 01 Sep 2023 10:11:34 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=44004#p44004</guid>
		</item>
		<item>
			<title><![CDATA[Re: Daedalus upgrade with runit-init]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=44002#p44002</link>
			<description><![CDATA[<p>Sorry to be a bit pedantic, but when I started looking at <span class="bbc">runit</span>, some time ago, it was still using <span class="bbc">SysV init</span> and called up <span class="bbc">runit</span> from the last line of <span class="bbc">/etc/inittab</span>.</p><p>Once I had that working I then moved to replacing <span class="bbc">SysV init</span> with <span class="bbc">runit-init</span>, which is a separate package from <span class="bbc">runit</span> and completely by-passes <span class="bbc">inittab</span>. This also affects things such as shutdown. I was being a bit cautious in case having a &quot;non-standard&quot; init program might affect the upgrade.</p><div class="codebox"><pre><code>ls -l /sbin/init  /sbin/shutdown
lrwxrwxrwx 1 root root 21 Jul 25  2021 /sbin/init -&gt; /lib/runit/runit-init
lrwxrwxrwx 1 root root 19 Jul 25  2021 /sbin/shutdown -&gt; /lib/runit/shutdown</code></pre></div><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Fri, 01 Sep 2023 09:10:02 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=44002#p44002</guid>
		</item>
		<item>
			<title><![CDATA[Re: Daedalus upgrade with runit-init]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=43993#p43993</link>
			<description><![CDATA[<p>Yes, runit was in use when I did the upgrade. I used a chimaera-runit live iso to install into a VM and then I upgraded the installation. I don&#039;t recall any special problems with it.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Thu, 31 Aug 2023 18:20:41 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=43993#p43993</guid>
		</item>
		<item>
			<title><![CDATA[Re: Daedalus upgrade with runit-init]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=43990#p43990</link>
			<description><![CDATA[<p>I haven&#039;t got round to checking what is available in in <span class="bbc">runit-services</span> yet as I was looking at a couple of other things, including the start up for Postgresql.</p><p>I will get round it that shortly.</p><p>Were you running with runit-init when you tried it?</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Thu, 31 Aug 2023 15:31:23 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=43990#p43990</guid>
		</item>
		<item>
			<title><![CDATA[Re: Daedalus upgrade with runit-init]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=43989#p43989</link>
			<description><![CDATA[<p>I did a chimaera-runit upgrade to daedalus over a year ago, before the runit-services package existed. Did you run into any conflicts between extra run scripts you added and the ones from the services package?</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Thu, 31 Aug 2023 15:01:35 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=43989#p43989</guid>
		</item>
		<item>
			<title><![CDATA[Daedalus upgrade with runit-init]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=43987#p43987</link>
			<description><![CDATA[<p>Having upgraded my laptop with OpenRC, it was time to try my desktop machine, which uses <span class="bbc">runit</span>, including <span class="bbc">runit-init</span>. As I am a bit more sensitive about my desktop system, I chose to try a VM first. I use Xen for running VMs.</p><p>I first updated/upgraded the existing Chimaera system and then set about the upgrade to Daedalus. I followed the instructions on the Devuan web site and edited <span class="bbc">/etc/sources.list</span> from Chimaera to Daedalus and was careful to ensure that I added <span class="bbc">non-free-firmware</span> to each line. I also killed off xscreensaver</p><div class="codebox"><pre><code># killall xscreensaver</code></pre></div><p>and then did the update/upgrade</p><div class="codebox"><pre><code># apt update
# apt upgrade</code></pre></div><p>This seemed to go fairly smoothly. I noticed that it has installed <span class="bbc">runit-services (0.5.4)</span> which should provide a good collection of runit type service scripts.<br />After it had finished I did</p><div class="codebox"><pre><code># apt full-upgrade
# apt-get autoremove --purge
# apt-get autoclean</code></pre></div><p>I noticed that the last two lines seem to have removed about 1.7GB.</p><div class="codebox"><pre><code># reboot</code></pre></div><p>It seems to come up cleanly and vnc works (which is useful for the VM under Xen!)<br />I still haven&#039;t checked everything, but it does work well enough that I can get in and have a look around (I hope that doesn&#039;t sound too negative. The main system is fine).</p><p>I have things like Postfix and Postgresql running, although Postgresql needed a bit of fiddling with versions, more on that elsewhere as it is not really an installation thing. I think that I will report on Postgresql in the <span class="bbc">Desktop</span> section,</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Thu, 31 Aug 2023 14:50:16 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=43987#p43987</guid>
		</item>
	</channel>
</rss>
