<?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=4342&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / runit scripts]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4342</link>
		<description><![CDATA[The most recent posts in runit scripts.]]></description>
		<lastBuildDate>Wed, 16 Jun 2021 13:12:12 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: runit scripts]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30271#p30271</link>
			<description><![CDATA[<p>Hi,</p><p>i am using runit as init service and have running some service as &#039;core&#039; runit scripts now.</p><p>I had some issues with the runit version in devuan (2.1.2-25) which have been fixed with 2.1.2-40<br />So I have installed the version 2.1.2-40 (from the antix repo) and found a behavior thats sound silly.</p><p>When I install a new service (e.g. update-service --add cron) that contains a log part then the link for the supervise folder<br />(e.g. log/supervise linked to /run/runit/supervise/cron.log) will be deleted and replaced by an (empty) supervise folder.</p><p>All fiiles (control, lock, ok, pid, stat, status) will stay in the /run/runit/supervise/cron.log folder and the newly created <br />/etc/sv/cron/log/supervise folder is empty. I can delete those folder and recreate the link but on the next reboot it will be reverted.</p><p>This doesn&#039;t happen to the supervise link of the service itselfs. (e.g. /etc/sv/cron/supervise will be linked to /run/runit/supervise/cron<br />and is not changing)</p><p>Where can I set the basefolder for the supervise folders for logs so they will work&#160; as the supervise folder of the services itselfs?</p><p>EDIT: I got the runit version from bullseye (also 2.1.2-40) and it is the same behavior.</p>]]></description>
			<author><![CDATA[dummy@example.com (denk_mal)]]></author>
			<pubDate>Wed, 16 Jun 2021 13:12:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30271#p30271</guid>
		</item>
		<item>
			<title><![CDATA[Re: runit scripts]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=29975#p29975</link>
			<description><![CDATA[<p>Hi Lorenzo</p><div class="quotebox"><cite>Lorenzo wrote:</cite><blockquote><div><p>try here<br /><a href="https://github.com/cloux/runit-base/tree/master/etc/sv" rel="nofollow">https://github.com/cloux/runit-base/tree/master/etc/sv</a></p></div></blockquote></div><p>Thanks for the hint. I have cloned the repo and have taken a (deep) look into it.<br />I will change some things because it is perfect for cloud and container environments where the vm is often destroyed and recreated but is IMHO not perfect for real servers/desktop. E.g. every initscript is (re)reating the symlink from /etc/init.d/* to /bin/sv what is something that should be done by a debian package or a separate install script.</p><div class="quotebox"><cite>Lorenzo wrote:</cite><blockquote><div><p>As long as we use sysv&#039;s initscripts for boot it works exactly as in sysv: if something is really broken during boot you&#039;ll get an emergency shell, otherwise it will spit error messages on the console and try to proceed with the boot sequence.</p></div></blockquote></div><p>So it is still best practice to check for all necessary depencies.</p><div class="quotebox"><cite>Lorenzo wrote:</cite><blockquote><div><p>Implement a set o runit boot-scripts is very low priority on my TODO list simply because the advantages are very few compared with the risk of regression. The amount of work required to have a runit boot-scripts that is on par with initscripts (works on several setups and all Debian arch, including non linux kernels) is too high and I&#039;m focusing my work on other areas where with the same amount of work users will get far more concrete advantages.<br />Downstream like Devuan can use the BTS to request me to adjust the dependency in a way that makes it easier to experiment with their own set of bootscript, I would consider that a valid bug.</p></div></blockquote></div><p>Yep, I totally agree with you. If stage 2 is working perfectly it may be time to step forward to change stage 1 and stage 3.<br />And stage 2 can be implemented as a separate independed debian package while stage 1 and stage 3 changes affects the runit debian package.</p><div class="quotebox"><cite>Lorenzo wrote:</cite><blockquote><div><p>Right now there is no such thing as facilities in runit (another valid bug on BTS). This on is on top of my TODO list and I need to sort it out before uploading the runit-services package. Runit doesn&#039;t need all sysv facilities, but it needs a facility when there are 2 or more alternative runit services that have to be checked for dependencies. Syslog is an excellent example.</p></div></blockquote></div><p>Even systemd has not a perfect solution for this problem; it still needs HI instead of KI. <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><div class="quotebox"><cite>Lorenzo wrote:</cite><blockquote><div><p>Services that can log to stdout and use svlogd don&#039;t need to depend on syslog; same for services that have their own log system (like apache2). Simple rule of thumb: if there is a log/run that execs svlogd you don&#039;t need to depend on syslog.</p></div></blockquote></div><p>Ahh, fantastic because this means there is a daemon independed way to administrate logfiles for different services to different locations. This is very useful on low memory mashine where I can pick only those log that I really need.</p><p>Thanks again for your explanations and your excellent work on the debian runit-script package.</p>]]></description>
			<author><![CDATA[dummy@example.com (denk_mal)]]></author>
			<pubDate>Wed, 02 Jun 2021 07:46:05 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=29975#p29975</guid>
		</item>
		<item>
			<title><![CDATA[Re: runit scripts]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=29957#p29957</link>
			<description><![CDATA[<div class="quotebox"><cite>denk_mal wrote:</cite><blockquote><div><p>On the internet I found this <a href="https://github.com/cloux/aws-devuan/issues/1" rel="nofollow">https://github.com/cloux/aws-devuan/issues/1</a> but unfortunally the repos from cloudx are not longer valid.</p></div></blockquote></div><p>try here<br /><a href="https://github.com/cloux/runit-base/tree/master/etc/sv" rel="nofollow">https://github.com/cloux/runit-base/tree/master/etc/sv</a></p><div class="quotebox"><cite>denk_mal wrote:</cite><blockquote><div><p>I noticed that the runit stage 1 is based on the execution of rcS.d/* what looks ok for me.</p><p>&#160; &#160; Will runit stop if some of those initscripts will fail?</p><p>&#160; &#160; Does it make sense to implement real runit stage 1 scripts?</p></div></blockquote></div><p>As long as we use sysv&#039;s initscripts for boot it works exactly as in sysv: if something is really broken during boot you&#039;ll get an emergency shell, otherwise it will spit error messages on the console and try to proceed with the boot sequence.<br />Implement a set o runit boot-scripts is very low priority on my TODO list simply because the advantages are very few compared with the risk of regression. The amount of work required to have a runit boot-scripts that is on par with initscripts (works on several setups and all Debian arch, including non linux kernels) is too high and I&#039;m focusing my work on other areas where with the same amount of work users will get far more concrete advantages.<br />Downstream like Devuan can use the BTS to request me to adjust the dependency in a way that makes it easier to experiment with their own set of bootscript, I would consider that a valid bug.</p><div class="quotebox"><cite>denk_mal wrote:</cite><blockquote><div><p>in the runit stage 2 every run script should check for depencies. sysvinit scripts contains a LSB header for facility. A sysvinit script could contain for example a $syslog facility that is resolvable with rsyslog or socklog.</p><p>&#160; &#160; what is the best way to transfer this to a runit init script?</p><p>&#160; &#160; Is it necessary to check for LSB facilities?</p><p>&#160; &#160; is it necessary to check for any possible facility e.g. that rsyslog has started OR socklog has started</p><p>&#160; &#160; or is there a common way to check for e.g a started $syslog daemon indepentely from the real installed syslog daemon?</p></div></blockquote></div><p>Right now there is no such thing as facilities in runit (another valid bug on BTS). This on is on top of my TODO list and I need to sort it out before uploading the runit-services package. Runit doesn&#039;t need all sysv facilities, but it needs a facility when there are 2 or more alternative runit services that have to be checked for dependencies. Syslog is an excellent example.</p><div class="quotebox"><cite>denk_mal wrote:</cite><blockquote><div><p>And especially for $syslog; Is it necessary to check for it if there is a log/run script for the service?</p></div></blockquote></div><p>Services that can log to stdout and use svlogd don&#039;t need to depend on syslog; same for services that have their own log system (like apache2). Simple rule of thumb: if there is a log/run that execs svlogd you don&#039;t need to depend on syslog.</p><p>Lorenzo</p>]]></description>
			<author><![CDATA[dummy@example.com (Lorenzo)]]></author>
			<pubDate>Sat, 29 May 2021 23:21:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=29957#p29957</guid>
		</item>
		<item>
			<title><![CDATA[Re: runit scripts]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=29946#p29946</link>
			<description><![CDATA[<p>Hi fsmithred,</p><p>thanks for your answers.</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>I don&#039;t know the answers to most of your questions, but there&#039;s a link to additional runscripts in this post:<br /><a href="https://dev1galaxy.org/viewtopic.php?pid=27300#p27300" rel="nofollow">https://dev1galaxy.org/viewtopic.php?pid=27300#p27300</a></p></div></blockquote></div><p>This is the place where I found most of the answers and urls</p><div class="quotebox"><blockquote><div><p>I think these are the two main discussions of runit on our forum:<br /><a href="https://dev1galaxy.org/viewtopic.php?id=3716" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=3716</a><br /><a href="https://dev1galaxy.org/viewtopic.php?id=3628" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=3628</a></p></div></blockquote></div><p>I even read them, too but there is very less informations about the runit scripts.<br />On the internet I found this <a href="https://github.com/cloux/aws-devuan/issues/1" rel="nofollow">https://github.com/cloux/aws-devuan/issues/1</a> but unfortunally the repos from cloudx are not longer valid.</p><p>I will try to take a look into the scripts from void linux for now.</p>]]></description>
			<author><![CDATA[dummy@example.com (denk_mal)]]></author>
			<pubDate>Wed, 26 May 2021 07:20:58 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=29946#p29946</guid>
		</item>
		<item>
			<title><![CDATA[Re: runit scripts]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=29941#p29941</link>
			<description><![CDATA[<p>I don&#039;t know the answers to most of your questions, but there&#039;s a link to additional runscripts in this post:<br /><a href="https://dev1galaxy.org/viewtopic.php?pid=27300#p27300" rel="nofollow">https://dev1galaxy.org/viewtopic.php?pid=27300#p27300</a></p><p>I think these are the two main discussions of runit on our forum:<br /><a href="https://dev1galaxy.org/viewtopic.php?id=3716" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=3716</a><br /><a href="https://dev1galaxy.org/viewtopic.php?id=3628" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=3628</a></p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Tue, 25 May 2021 12:30:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=29941#p29941</guid>
		</item>
		<item>
			<title><![CDATA[runit scripts]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=29938#p29938</link>
			<description><![CDATA[<p>I am using runit as init system but it seems to me that for now it is only a binary replacement for the sysvinit binary because the init.d/* scripts are executed as before. So I have started to replace them with real runit scripts.</p><p>I am using for now the debian scripts from Lorenzo Pulit<br />(<a href="https://salsa.debian.org/runit-team" rel="nofollow">https://salsa.debian.org/runit-team</a>) as base for my devuan system.</p><ul><li><p>Are there other, more devuan like sources for runit scripts?</p></li></ul><p>I noticed that the runit stage 1 is based on the execution of rcS.d/* what looks ok for me.</p><ul><li><p>Will runit stop if some of those initscripts will fail?</p></li></ul><ul><li><p>Does it make sense to implement real runit stage 1 scripts?</p></li></ul><p>in the runit stage 2 every run script should check for depencies. sysvinit scripts contains a LSB header for facility. A sysvinit script could contain for example a $syslog facility that is resolvable with rsyslog or socklog.</p><ul><li><p>what is the best way to transfer this to a runit init script?</p></li></ul><ul><li><p>Is it necessary to check for LSB facilities?</p></li></ul><ul><li><p>is it necessary to check for any possible facility e.g. that rsyslog has started <strong>OR</strong> socklog has started</p></li></ul><ul><li><p>or is there a common way to check for e.g a started $syslog daemon indepentely from the real installed syslog daemon?</p></li></ul><p>And especially for $syslog; Is it necessary to check for it if there is a log/run script for the service?</p>]]></description>
			<author><![CDATA[dummy@example.com (denk_mal)]]></author>
			<pubDate>Tue, 25 May 2021 11:26:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=29938#p29938</guid>
		</item>
	</channel>
</rss>
