<?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=3716&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Runit]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3716</link>
		<description><![CDATA[The most recent posts in Runit.]]></description>
		<lastBuildDate>Sun, 04 Jul 2021 18:04:03 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Runit]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30505#p30505</link>
			<description><![CDATA[<p>I&#039;m running Debian buster on a ROCK Pi S as a media renderer front-end for <span class="bbc">mpd</span> and I&#039;ve managed to get that and <span class="bbc">upmpdcli</span> running under supervision:</p><div class="codebox"><pre><code># sv check mpd
ok: run: mpd: (pid 1223) 561s
# sv check upmpdcli                                         
ok: run: upmpdcli: (pid 2054) 202s
# pstree
runit─┬─runsvdir─┬─runsv─┬─svlogd
      │          │       └─upmpdcli───13*[{upmpdcli}]
      │          └─runsv─┬─mpd───2*[{mpd}]
      │                  └─svlogd
      ├─sshd───sshd───sshd───mksh───pstree
      └─udevd───udevd
#</code></pre></div><p>I followed the instructions in this thread:</p><ul><li><p>create /etc/sv/$service/log and the associated (executable) run files</p></li><li><p>symlink the service directory to /etc/service/</p></li><li><p>copy &amp; divert the /etc/init.d/ script</p></li><li><p>symlink /usr/bin/sv to /etc/init.d/</p></li></ul><p>Here are the service run files if anybody&#039;s interested:</p><div class="codebox"><pre><code>$ cat /etc/sv/mpd/run                                       
#!/bin/sh -e
if ! [ -d /run/mpd ]; then
        mkdir /run/mpd
        chmod 0755 /run/mpd
        chown -R mpd /run/mpd
fi
exec chpst -u mpd mpd --stdout --no-daemon /etc/mpd.conf
$ cat /etc/sv/upmpdcli/run                                  
#!/bin/sh -e
exec chpst -u upmpdcli upmpdcli -c /etc/upmpdcli.conf
$</code></pre></div><p>The log run files are as described earlier (also executable).</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 04 Jul 2021 18:04:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30505#p30505</guid>
		</item>
		<item>
			<title><![CDATA[Re: Runit]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30479#p30479</link>
			<description><![CDATA[<p>well, i migrated to network-manager and used your runit script from this thread, with some changes.. and it&#039;s running fine. (daemon logs still redirect to daemon.log, supervision logs to /var/log/runit/network-manager)<br />but it also doesnt start at boot, untill i restart iwd (/etc/init.d). so, i probably need another runscript for iwd this time... <img src="https://dev1galaxy.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /> <br />i guess it&#039;s going to take some time to migrate everything to runit scripts.. i&#039;ve been searching around for ideas/ runit scripts, and found this idea interesting : <br /><a href="https://github.com/apayne/supervision-scripts" rel="nofollow">https://github.com/apayne/supervision-scripts</a> <br />&quot;distro agnostic&quot;, &quot;supervision agnostic&quot; sounds ideal. (to me anyway).</p>]]></description>
			<author><![CDATA[dummy@example.com (xinomilo)]]></author>
			<pubDate>Thu, 01 Jul 2021 09:06:37 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30479#p30479</guid>
		</item>
		<item>
			<title><![CDATA[Re: Runit]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30475#p30475</link>
			<description><![CDATA[<p>I&#039;m using the connman runit scripts from the antix collection, and connman seems to be working correctly. I have installed connman, connman-gtk, connman-ui and connman-vpn. The command <span class="bbc">connman-ui-gtk</span> is in my startup apps. (xfce here)</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Wed, 30 Jun 2021 18:29:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30475#p30475</guid>
		</item>
		<item>
			<title><![CDATA[Re: Runit]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30474#p30474</link>
			<description><![CDATA[<p>so i&#039;ve migrated some sysv scripts to Lorenzo&#039;s available runscripts.. (using ceres with LXDE currently).</p><div class="codebox"><pre><code>sv status /etc/sv/*
run: /etc/sv/acpid: (pid 1849) 895s; run: log: (pid 1847) 895s
run: /etc/sv/acpi-fakekey: (pid 1820) 895s; run: log: (pid 1819) 895s
run: /etc/sv/cron: (pid 1815) 895s; run: log: (pid 1814) 895s
run: /etc/sv/dbus: (pid 1825) 895s; run: log: (pid 1824) 895s
run: /etc/sv/elogind: (pid 1829) 895s; run: log: (pid 1821) 895s
run: /etc/sv/getty-tty1: (pid 1816) 895s
run: /etc/sv/getty-tty2: (pid 1813) 895s
run: /etc/sv/getty-tty3: (pid 1826) 895s
run: /etc/sv/getty-tty4: (pid 1830) 895s
run: /etc/sv/getty-tty5: (pid 1835) 895s
run: /etc/sv/getty-tty6: (pid 1831) 895s
warning: /etc/sv/getty-ttyS0: unable to open supervise/ok: file does not exist
run: /etc/sv/haveged: (pid 1823) 895s; run: log: (pid 1822) 895s
run: /etc/sv/lightdm: (pid 1828) 895s; run: log: (pid 1827) 895s
run: /etc/sv/openntpd: (pid 1818) 895s; run: log: (pid 1817) 895s
run: /etc/sv/tor: (pid 1833) 895s; run: log: (pid 1832) 895s</code></pre></div><p>had one service error with acpi-fakekey, </p><div class="quotebox"><blockquote><div><p>/etc/sv/acpi-fakekey/run: 10: exec: -f: not found</p></div></blockquote></div><p>worked around it with :</p><div class="codebox"><pre><code>diff runscript-collection/acpi-fakekey/run /etc/sv/acpi-fakekey/run
10c10
&lt; exec $DAEMON -f
---
&gt; exec /usr/sbin/acpi_fakekeyd -f </code></pre></div><p>another problem i have since migrating elogind/dbus/lightdm scripts to /etc/sv : /etc/init.d/connman doesn&#039;t start anymore during boot.. needs to be restarted after boot. so looking to find/create a runit script for connman..</p>]]></description>
			<author><![CDATA[dummy@example.com (xinomilo)]]></author>
			<pubDate>Wed, 30 Jun 2021 18:00:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30474#p30474</guid>
		</item>
		<item>
			<title><![CDATA[Re: Runit]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28917#p28917</link>
			<description><![CDATA[<p>Lorenzo,</p><p>Thanks for the thorough reply. I&#039;m ok with using the scripts in rcS.d - it works fine that way. I might play around with the more advanced configs later.</p><p>I was thinking ahead to the future. Sysvinit scripts are disappearing at an alarming rate, and I worry that they won&#039;t all land in the new orphan-sysvinit-scripts package.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Wed, 07 Apr 2021 13:21:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28917#p28917</guid>
		</item>
		<item>
			<title><![CDATA[Re: Runit]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28913#p28913</link>
			<description><![CDATA[<div class="quotebox"><cite>Lorenzo wrote:</cite><blockquote><div><p>[ also looking at the other thread&#160; <a href="https://dev1galaxy.org/viewtopic.php?id=3628&amp;p=2" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=3628&amp;p=2</a> ]<br />The getty-run package ships with a getty-S0 on serial that is disabled by default. Enabling it is usually enough for other virtualization environment like Qemu or Docker, but I&#039;ve never run Xen so I don&#039;t know.. is the getty on hvc0 a requirement for Xen, or anyway a commonly required feature?<br />If that is the case I can ship a getty on hvc0 too so that the only thing left to do is to enable it.<br />Let me know!</p></div></blockquote></div><p>I would not claim to be an expert on Xen, but I do believe that it is necessary to get hvc0 working in order to be able to log in when running Paravirtualised</p><p><a href="https://wiki.xenproject.org/wiki/Xen_Common_Problems#Console" rel="nofollow">https://wiki.xenproject.org/wiki/Xen_Co … ms#Console</a></p><p>So, your suggestion sounds good to me.</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Wed, 07 Apr 2021 09:35:05 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28913#p28913</guid>
		</item>
		<item>
			<title><![CDATA[Re: Runit]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28907#p28907</link>
			<description><![CDATA[<div class="quotebox"><cite>andyprough wrote:</cite><blockquote><div><div class="quotebox"><cite>xinomilo wrote:</cite><blockquote><div><p>btw, antix did some work on runit : <a href="https://www.antixforum.com/forums/topic/runit-on-antix-bullseye-iso/" rel="nofollow">https://www.antixforum.com/forums/topic … lseye-iso/</a> <br />seems to use antix&#039;s own packages, not the debian way of mixing sysvinit/runit.. <br />haven&#039;t seen it yet in action, will&#160; be trying the latest iso in the following days : <br /><a href="https://www.antixforum.com/forums/topic/antix-bullseye-a2-runit_x64-full-iso-available/" rel="nofollow">https://www.antixforum.com/forums/topic … available/</a></p></div></blockquote></div><p>antiX has had runit ISO&#039;s available for about a year now. It&#039;s blazing fast.</p></div></blockquote></div><p>As soon as I have some extra time I&#039;ll try to provide scripts for those too, except udevd because I&#039;m not 100% sure that it&#039;s safe to do all stage 3 with udev not running</p><p>Lorenzo</p>]]></description>
			<author><![CDATA[dummy@example.com (Lorenzo)]]></author>
			<pubDate>Tue, 06 Apr 2021 23:35:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28907#p28907</guid>
		</item>
		<item>
			<title><![CDATA[Re: Runit]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28906#p28906</link>
			<description><![CDATA[<div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>Update:&#160; I forked live-config to create live-config-runit which sets up console autologin in the live session. The code for that is in /lib/live/config/0190-runit. It works, but I did not replace the live-config init script with runscripts.</p><p>Today I tried making runscripts for live-config. It&#039;s set up as a one-shot, and it runs, but it does not run early enough. A comment in the init script says it must start before mountkernfs and in my sysvinit system, there is rcS.d/S01live-config which starts before S02mountkernfs. That link is not present in the runit system.</p></div></blockquote></div><p>If it really need to run that early it need to be a script in /etc/rcS.d/ so keeping the sysvinit scripts is the most straightforward thing to do.<br />In case the sysvinit comment is wrong, and it can be run later, like after all the stuff in rcS.d, but before certain services (like gettys and login manager) you have two options:</p><ul><li><p>ship as a sysv script, but in runlevel 2, and make sure that a runscript with the same name in /etc/sv/ never exists.<br />&#160; &#160;This way it is granted that your script runs before any native runscript (look at the code in stage 2)</p></li></ul><ul><li><p>have it as a oneshot runscript -- you need to convert the script into a proper runscript, and then have the gettys and the<br />&#160; &#160;login manager depends on that service. IMHO it doesn&#039;t worth the effort to have runscripts for services where there is nothing<br />&#160; &#160;to supervise (no longrun) as you are adding (uneeded?) complexity to achieve the same result as with a plain sysv script.<br />&#160; &#160;Anyway if someone is curious and wants to experiment, in runit, to do a oneshot, have a line in the run file that does<br />&#160; &#160; &#039; sv one yourservicename&#039;&#160; &#160;otherwise your service will keep restarting when it&#039;s done which is pointless.<br />&#160; &#160; Also you need to design some kind of readiness protocol, the easy way is to touch a file into run at the very end of your runscript, like<br />&#160; &#160; &#039; touch /run/myservice.ok&#039;, then write the check file to test for the existence of myservice.ok and exit nonzero if it doesn&#039;t exists.<br />&#160; &#160; Then make all services that you want to run after yourservice depends on yourservice with a line like<br />&#160; &#160; &#039; sv start yourservicename&#160; &amp;&amp;&#160; sv check yourservicename&#160; || exit 1 &#039; <br />&#160; &#160; As you see, if it&#039;s not for playing, the sysvinit script it&#039;s likely the option you want to chose</p></li></ul><p>Hope the above answer your questions, it case it doesn&#039;t just ask again <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />Lorenzo</p>]]></description>
			<author><![CDATA[dummy@example.com (Lorenzo)]]></author>
			<pubDate>Tue, 06 Apr 2021 23:31:11 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28906#p28906</guid>
		</item>
		<item>
			<title><![CDATA[Re: Runit]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28902#p28902</link>
			<description><![CDATA[<div class="quotebox"><cite>Geoff 42 wrote:</cite><blockquote><div><p>Are you using <span class="bbc">runit</span> under <span class="bbc">SysVinit</span> or are you using <span class="bbc">runit-init</span>. With the latter you need to do some setting up of <span class="bbc">getty</span>. When I do that in a VM under Xen, I have to set up a <span class="bbc">getty</span> on <span class="bbc">hvc0</span> for the console.</p><p>Geoff</p></div></blockquote></div><p>Hi,</p><p>[ also looking at the other thread&#160; <a href="https://dev1galaxy.org/viewtopic.php?id=3628&amp;p=2" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=3628&amp;p=2</a> ]<br />The getty-run package ships with a getty-S0 on serial that is disabled by default. Enabling it is usually enough for other virtualization environment like Qemu or Docker, but I&#039;ve never run Xen so I don&#039;t know.. is the getty on hvc0 a requirement for Xen, or anyway a commonly required feature?<br />If that is the case I can ship a getty on hvc0 too so that the only thing left to do is to enable it.<br />Let me know!</p><p>Thanks,<br />Lorenzo</p>]]></description>
			<author><![CDATA[dummy@example.com (Lorenzo)]]></author>
			<pubDate>Tue, 06 Apr 2021 22:29:33 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28902#p28902</guid>
		</item>
		<item>
			<title><![CDATA[Re: Runit]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28898#p28898</link>
			<description><![CDATA[<p>Update:&#160; I forked live-config to create live-config-runit which sets up console autologin in the live session. The code for that is in /lib/live/config/0190-runit. It works, but I did not replace the live-config init script with runscripts.</p><p>Today I tried making runscripts for live-config. It&#039;s set up as a one-shot, and it runs, but it does not run early enough. A comment in the init script says it must start before mountkernfs and in my sysvinit system, there is rcS.d/S01live-config which starts before S02mountkernfs. That link is not present in the runit system.</p><p>/etc/runit/1 contains:</p><div class="codebox"><pre><code>/lib/runit/run_sysv_scripts &#039;/etc/rcS.d&#039;</code></pre></div><p>So, /lib/runit/run_sysv_scripts will start the init scripts linked in rcS.d. <br />If the init script is not executable, then live-config does not run until the desktop comes up, so autologin does not happen, and you get a login screen. I&#039;ve been making the init scripts non-executable, mainly to make it easier to see which ones are managed by runit when I look in /etc/init.d.</p><p>Is there another way in runit to make a script run first? I know a runscript can state what must be started before it, but I haven&#039;t seen a way to get to say what it must start before. (everything, in this case). </p><p>&#039;update-service --remove live-config &amp;&amp; chmod +x /etc/init.d/live-config&#039; set it back to the way it was. Now autologin works again in the live-isos I make.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Tue, 06 Apr 2021 17:55:16 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28898#p28898</guid>
		</item>
		<item>
			<title><![CDATA[Re: Runit]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28647#p28647</link>
			<description><![CDATA[<p>I fired up the antix full runit iso. Here&#039;s a list of runscripts they have that are not in Lorenzo&#039;s collection. This is as far as I&#039;ve gotten with it. I haven&#039;t tried any of these yet or even looked inside the files.</p><p>AntiX has: <br />bluetooth, connman, ntp, ofono, rpcbind, rsync, <br />rsyslog, smartmontools, tlp, udevd, ufw</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Wed, 31 Mar 2021 12:28:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28647#p28647</guid>
		</item>
		<item>
			<title><![CDATA[Re: Runit]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28627#p28627</link>
			<description><![CDATA[<div class="quotebox"><cite>xinomilo wrote:</cite><blockquote><div><p>btw, antix did some work on runit : <a href="https://www.antixforum.com/forums/topic/runit-on-antix-bullseye-iso/" rel="nofollow">https://www.antixforum.com/forums/topic … lseye-iso/</a> <br />seems to use antix&#039;s own packages, not the debian way of mixing sysvinit/runit.. <br />haven&#039;t seen it yet in action, will&#160; be trying the latest iso in the following days : <br /><a href="https://www.antixforum.com/forums/topic/antix-bullseye-a2-runit_x64-full-iso-available/" rel="nofollow">https://www.antixforum.com/forums/topic … available/</a></p></div></blockquote></div><p>antiX has had runit ISO&#039;s available for about a year now. It&#039;s blazing fast.</p>]]></description>
			<author><![CDATA[dummy@example.com (andyprough)]]></author>
			<pubDate>Tue, 30 Mar 2021 14:18:58 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28627#p28627</guid>
		</item>
		<item>
			<title><![CDATA[Re: Runit]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28622#p28622</link>
			<description><![CDATA[<p>btw, antix did some work on runit : <a href="https://www.antixforum.com/forums/topic/runit-on-antix-bullseye-iso/" rel="nofollow">https://www.antixforum.com/forums/topic … lseye-iso/</a> <br />seems to use antix&#039;s own packages, not the debian way of mixing sysvinit/runit.. <br />haven&#039;t seen it yet in action, will&#160; be trying the latest iso in the following days : <br /><a href="https://www.antixforum.com/forums/topic/antix-bullseye-a2-runit_x64-full-iso-available/" rel="nofollow">https://www.antixforum.com/forums/topic … available/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (xinomilo)]]></author>
			<pubDate>Tue, 30 Mar 2021 08:23:13 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28622#p28622</guid>
		</item>
		<item>
			<title><![CDATA[Re: Runit]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28455#p28455</link>
			<description><![CDATA[<p>I&#039;m using runit-init in chimaera. The getties, acpid and ssh were all set up automatically.&#160; I set up others using advice from this thread.</p><p><span class="bbc">sendkey ctrl-alt-f2</span> worked. Thanks!</p><p>Also forgot to meniton - if you make a new runlevel and decide to change its name, don&#039;t change it while you are in that runlevel, and pay attention to the symlinks in /etc/runit/runsvdir. My system was unbootable because of a dead symlink for default that pointed to the old name.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Wed, 24 Mar 2021 11:03:00 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28455#p28455</guid>
		</item>
		<item>
			<title><![CDATA[Re: Runit]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28454#p28454</link>
			<description><![CDATA[<p>Are you using <span class="bbc">runit</span> under <span class="bbc">SysVinit</span> or are you using <span class="bbc">runit-init</span>. With the latter you need to do some setting up of <span class="bbc">getty</span>. When I do that in a VM under Xen, I have to set up a <span class="bbc">getty</span> on <span class="bbc">hvc0</span> for the console.</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Wed, 24 Mar 2021 10:25:09 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28454#p28454</guid>
		</item>
	</channel>
</rss>
