<?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=3371&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Newer versions of Openrc]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3371</link>
		<description><![CDATA[The most recent posts in Newer versions of Openrc.]]></description>
		<lastBuildDate>Fri, 15 May 2020 18:15:19 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Newer versions of Openrc]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21756#p21756</link>
			<description><![CDATA[<p>I requested that version 0.42.1 of Openrc should be packaged in Debian :-</p><p><a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=958820" rel="nofollow">https://bugs.debian.org/cgi-bin/bugrepo … bug=958820</a></p><p>and I have had a positive reply and now 0.42-1 has come through<br />from sid to Ceres. I have not yet had a chance to test this,<br />but will report when I have.</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Fri, 15 May 2020 18:15:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21756#p21756</guid>
		</item>
		<item>
			<title><![CDATA[Re: Newer versions of Openrc]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21266#p21266</link>
			<description><![CDATA[<p>I finally managed to photograph the shutdown on the console and it can be seen at </p><p><a href="http://kulcha.x10host.com/shutdown.jpg" rel="nofollow">http://kulcha.x10host.com/shutdown.jpg</a></p><p>The running of <span class="bbc">pstree</span> is from <span class="bbc">sendsigs</span> rather than from <span class="bbc">openrc-init</span> itself.</p><p>After it enters the runlevel <span class="bbc">shutdown</span> it runs the <span class="bbc">sendsigs</span> script with <span class="bbc">stop</span>, which then returns a warning, although I don&#039;t see anything really wrong. It then goes on to close things down from the <span class="bbc">sysinit</span> runlevel, such as the network and unmounting the filesystems.</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Fri, 24 Apr 2020 14:03:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21266#p21266</guid>
		</item>
		<item>
			<title><![CDATA[Re: Newer versions of Openrc]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21247#p21247</link>
			<description><![CDATA[<p>The patch which I used to put the runlevel <span class="bbc">off</span> before <span class="bbc">shutdown</span> looks like this :-</p><div class="codebox"><pre><code>cat 0010-init-runlevel-off.patch</code></pre></div><div class="quotebox"><blockquote><div><p>Add in the runlevel &quot;off&quot; before &quot;shutdown&quot; in openrc-init.c<br />--- a/src/rc/openrc-init.c<br />+++ b/src/rc/openrc-init.c<br />@@ -108,6 +108,7 @@ static void handle_shutdown(const char *<br /> {<br />&#160; &#160; &#160;struct timespec ts;</p><p>+&#160; &#160; do_openrc(&quot;off&quot;);<br />&#160; &#160; &#160;do_openrc(runlevel);<br />&#160; &#160; &#160;printf(&quot;Sending the final term signal\n&quot;);<br />&#160; &#160; &#160;kill(-1, SIGTERM);</p></div></blockquote></div><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Thu, 23 Apr 2020 13:39:58 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21247#p21247</guid>
		</item>
		<item>
			<title><![CDATA[Re: Newer versions of Openrc]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21195#p21195</link>
			<description><![CDATA[<p>I have now installed and tested my new version of OpenRC, with the new openrc-init, on my laptop and can confirm that it has cured the problem with shutting down the file systems properly. I have also checked my desktop, booting on the bare metal, instead of on the Xen hypervisor and it is, also, still working correctly.</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Tue, 21 Apr 2020 07:48:27 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21195#p21195</guid>
		</item>
		<item>
			<title><![CDATA[Re: Newer versions of Openrc]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21190#p21190</link>
			<description><![CDATA[<p>I have managed to see a bit of the warning message. It is that it failed to shutdown a couple of processes related to RPC*. openrc-init is quite neat in that it runs pstree to show you what is running, although the info disappears before you can study it!</p><p>As my desktop is used for running VMs under Xen, it uses lvm to handle the disks for the VMs. The desktop also boots from BIOS. I have checked my laptop, which boots on the real hardware and boot with UEFI. Before applying my above mod, there was also the problem with the file systems not shutting down properly, particularly /home. This only shows as it boots up. The logging is a bit different from my desktop, and the <span class="bbc">shutdown</span> runlevel does not get logged. The other logging oddity is that the <span class="bbc">sysinit</span> runlevel gets logged twice. The documentation seems to suggest that <span class="bbc">sysinit</span> won&#039;t get logged at all!</p><p>Geoff</p><p>* edited to add that the RPC processes were <span class="bbc">rpc.statd</span> and <span class="bbc">rpcbind</span></p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Mon, 20 Apr 2020 08:58:42 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21190#p21190</guid>
		</item>
		<item>
			<title><![CDATA[Re: Newer versions of Openrc]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21182#p21182</link>
			<description><![CDATA[<p>I have now added a line to <span class="bbc">openrc-init.c</span> to enter the runlevel <span class="bbc">off</span> before it moves to <span class="bbc">shutdown</span> and have rebuilt and reinstalled OpenRC. With openrc-init being used instead of SysV init, /var/log/rc.log is now virtually the same as with SysV init, apart from also entering the <span class="bbc">boot</span> runlevel on the way up. Most importantly, the file systems appear to have been shutdown cleanly and are logged as being clean on the way up.</p><p>As it shuts down, there is a warning message on the screen, but I have not been able to read it yet, but will work on this.</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Sun, 19 Apr 2020 15:58:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21182#p21182</guid>
		</item>
		<item>
			<title><![CDATA[Re: Newer versions of Openrc]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21180#p21180</link>
			<description><![CDATA[<p>The runlevels passed through, when using SysV init, are :-</p><div class="quotebox"><blockquote><div><p>sysinit, default, off, shutdown</p></div></blockquote></div><p>with openrc-init :-</p><div class="quotebox"><blockquote><div><p>sysinit, boot, default, shutdown</p></div></blockquote></div><p>It would appear that the simplest thing to do would be to add in the runlevel <span class="bbc">off</span> before <span class="bbc">shutdown</span> in openrc-init.</p><p>Both <span class="bbc">boot</span> and <span class="bbc">shutdown</span> runlevels are empty. <span class="bbc">off</span> has the entries savecache, sendsigs and umount[nfs.sh|fs|root]. I think that moving to <span class="bbc">off</span> will cause the entries in <span class="bbc">default</span> to be stopped, apart from those also in <span class="bbc">off</span>. The umount* ones will therefore not be stopped, as they are already &quot;started&quot; as they are dependents on entries in <span class="bbc">default</span>. These will be stopped when moving to <span class="bbc">shutdown</span>. Their start routines are no-ops, only stop does anything. In the case of umount, I think this is obvious. The savecache entry does its thing on start.</p><p>Of course, the simplest thing is not necessarily the best thing to do! Is it important to keep OpenRC as close as possible to the original, or is compatibility with SysV init more important. Debian has put in quite a bit of effort to bring in SysV init compatibility.</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Sun, 19 Apr 2020 08:33:34 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21180#p21180</guid>
		</item>
		<item>
			<title><![CDATA[Re: Newer versions of Openrc]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21174#p21174</link>
			<description><![CDATA[<p>One thing which I have noticed is that a couple of filesystems are not being unmounted correctly on shutdown. I did report this on the Systems thread, but as I look into this, it seems to me that this is a better location to report it.</p><p>In <span class="bbc">/var/log/rc.log</span> it reports that /tmp, /var and /home failed to unmount as the target is busy. Then on booting <span class="bbc">fsck</span> has to recover the journal on /var and /home. This only happens when using <span class="bbc">openrc-init</span> and not with <span class="bbc">SysV init</span>.</p><p>With SysV init being used to start OpenRC, it uses <span class="bbc">/etc/init.d/rc</span> to get openrc running.<br />When shutting down <span class="bbc">rc 0</span> calls <span class="bbc">openrc off</span> and then <span class="bbc">openrc shutdown</span>. This gets logged as <span class="bbc">rc off</span> and appears to run through <span class="bbc">default</span> stopping the entries in reverse order. This is because it is leaving the <span class="bbc">default</span> runlevel and stops any services not in the new runlevel, i.e. <span class="bbc">off</span>.</p><p>Compared to using <span class="bbc">openrc-init</span>, where it is logged as <span class="bbc">rc shutdown</span>. This also runs through the entries in <span class="bbc">default</span> and stops them in reverse order. It then appears to take the entries in <span class="bbc">sysinit</span>, again,&#160; stopping them in reverse order. This includes the <span class="bbc">umount[nfs|fs|root]</span> scripts, which are notionally started as they are dependencies of other scripts.</p><p>The dependencies do my head in. Which way round are the dependencies? The <span class="bbc">LSB headers</span> are described in the Debian docs :-</p><p><a href="https://wiki.debian.org/LSBInitScripts/" rel="nofollow">https://wiki.debian.org/LSBInitScripts/</a><br /><a href="https://wiki.debian.org/LSBInitScripts/DependencyBasedBoot" rel="nofollow">https://wiki.debian.org/LSBInitScripts/ … yBasedBoot</a></p><p>In the LSB headers the <span class="bbc">Required-Start:</span> and <span class="bbc">Required-Stop:</span> tend to be the same-ish.</p><div class="quotebox"><blockquote><div><p>Required-Start: Lists those facilities that must start before this script.<br />Required-Stop: Lists those facilities that must still be running while this script is stopped.</p></div></blockquote></div><div class="quotebox"><blockquote><div><p>X-Start-Before: Lists the facilites as though they had Should-Start: this script. I think that this means this script should start before(?) the listed facilities.<br />X-Stop-After: I think this means this script should stop after(?) the listed facilities have been stopped.</p></div></blockquote></div><p>Although OpenRC does not use <span class="bbc">insserv</span>, it is interesting to use it to see the dependencies also using dotty, as described in the Debian docs. You probably have insserv anyway, but you might need to install dotty :-</p><div class="codebox"><pre><code>apt install insserv graphviz</code></pre></div><p>then as yourself :-</p><div class="codebox"><pre><code>cd /tmp
/usr/share/insserv/check-initd-order -g &gt; boot.dot
/usr/share/insserv/check-initd-order -g -k &gt; reboot.dot
dotty boot.dot &amp;
dotty reboot.dot &amp;</code></pre></div><p>Note that you should &quot;read&quot; the graph for reboot/halt from right to left.</p><p>Coming up, it brings up the network and mounts the file systems. $remote_fs is taken as the milestone that the FS is available. Then the logger is started and $syslog is taken as the milestone to start the daemons. $all is the milestone that it has all been done so that local stuff can be started.</p><p>Going down, the daemons are stopped and then $remote_fs is the milestone to be stopped. This uses sendsigs to stop stuff and then stops rsyslog and then unmounts nfs and stops the networking. After that $local_fs is stopped and finally umountroot.</p><p>Comparing the dotty graphs <span class="bbc">lvm2</span> has :-</p><div class="quotebox"><blockquote><div><p># X-Start-Before:&#160; &#160; checkfs mountall</p></div></blockquote></div><p>and <span class="bbc">lvm2</span> appears to be started before <span class="bbc">mountall</span> has started.</p><p><span class="bbc">rsyslog</span> has :-</p><div class="quotebox"><blockquote><div><p># X-Stop-After:&#160; &#160; &#160; sendsigs</p></div></blockquote></div><p>and <span class="bbc">rsyslog</span> appears to be stopped after <span class="bbc">sendsigs</span> has been stopped.</p><p>I am getting a clearer picture, but more head scratching is required...</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Sat, 18 Apr 2020 14:04:29 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21174#p21174</guid>
		</item>
		<item>
			<title><![CDATA[Re: Newer versions of Openrc]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=20787#p20787</link>
			<description><![CDATA[<p><span class="bbu">openrc-shutdown</span></p><p>The script for shutting down is a very crude thing and would not win any awards for beauty, but it does work. It looks like this :-</p><div class="codebox"><pre class="vscroll"><code>cat &lt;&lt; &quot;EOF&quot; &gt; /usr/local/bin/my-logout-query
#!/bin/bash

xmessage \
    -geometry 650x100+1700+400 \
    -font 10x20 \
    -bd red \
    -bg yellow \
    -fg black \
    -title &quot;Shutdown/Logout&quot; \
    -buttons Shutdown:101,Reboot:102,Logout:103,Cancel:104 \
    &quot;How do you want to leave the computer?&quot;

answer=$?

case &quot;$answer&quot; in
     101)
#        echo shutdown
	sudo /sbin/openrc-shutdown -p now
        ;;
     102)
#        echo reboot
	sudo /sbin/openrc-shutdown -r now
        ;;
     103)
#         echo logout
#        /usr/bin/lxsession-logout
        /usr/bin/lxqt-leave --logout
        ;;
     104)
        echo cancel
        ;;
esac
EOF
chmod a+x /usr/local/bin/my-logout-query</code></pre></div><p>You may need to adjust the geometry to fit your screen.</p><p>As myself :-</p><div class="codebox"><pre><code>cd .local/share/applications
cp /usr/share/applications/lxqt-leave.desktop my-leave.desktop</code></pre></div><p>I then edited <span class="bbc">my-leave.desktop</span> to change the &quot;Exec&quot; line from <span class="bbc">lxqt-leave</span> to</p><div class="quotebox"><blockquote><div><p>Exec=/usr/local/bin/my-logout-query</p></div></blockquote></div><p>Then it should appear in the LXQt menu under the Leave options. If you have a <span class="bbc">quicklaunch</span> plugin it is possible to drag a copy of leave and drop it on the <span class="bbc">quicklaunch</span> as an easy way of shutting down. I have a second <span class="bbc">quicklaunch</span> on the far right of the LXQt panel, just for this purpose.</p><p>I have tried <span class="bbc">openrc-shutdown</span> while SysV init was still in use and it seems to work correctly, so it is possible to set this up before looking at replacing SysV init with <span class="bbc">openrc-init</span>.</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Sat, 28 Mar 2020 16:34:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=20787#p20787</guid>
		</item>
		<item>
			<title><![CDATA[Re: Newer versions of Openrc]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=20673#p20673</link>
			<description><![CDATA[<p><span class="bbu">On real hardware</span></p><p>As Openrc 0.42.1 seems to be happy on a VM under Xen I thought that I should check it on real hardware. I tried it on my desktop machine.<br />This usually boots under the Xen hypervisor with Beowulf as the controlling OS, Dom0. This machine is still using SysV init to start things.<br />I simply used the deb files I had created earlier, as described above, and the command :-</p><div class="codebox"><pre><code>dpkg -i libeinfo1_0.42.1-1_amd64.deb librc1_0.42.1-1_amd64.deb openrc_0.42.1-1_amd64.deb</code></pre></div><p>The machine rebooted as normal as Dom0 but running 0.42.1 and all looks normal.<br />I then rebooted with it running on the bare metal and it still looks normal.</p><p>I have also installed 0.42.1 on my laptop. I had previously put the Gentoo <span class="bbc">openrc-init 0.41.2</span> on this to replace SysV init. I had also hacked up a small script to use openrc-shutdown, which could be used from LXQt. After installing 0.42.1 it still works as before.<br />It is documented that this later version of openrc-shutdown will also work with SysV init, although I have not tested this.</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Sun, 22 Mar 2020 17:22:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=20673#p20673</guid>
		</item>
		<item>
			<title><![CDATA[Re: Newer versions of Openrc]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=20539#p20539</link>
			<description><![CDATA[<p><span class="bbu">The file /etc/init.d/getty</span></p><p>This file was derived from <span class="bbc">agetty</span>. The name <span class="bbc">agetty</span> has been changed to <span class="bbc">getty</span><br />and a couple of variables from <span class="bbc">/etc/conf.d/agetty</span> have been incorporated.<br />It extracts the name of the device from the end of the name of the file it was started from, e.g. <span class="bbc">getty.tty</span><br />It uses the OpenRC native format of init file and also uses the <span class="bbc">supervise-daemon</span> which is part of OpenrRC.</p><div class="codebox"><pre class="vscroll"><code>cat &lt;&lt; &quot;EOF&quot; &gt; /etc/init.d/getty
#!/sbin/openrc-run
# Copyright (c) 2017 The OpenRC Authors.
# See the Authors file at the top-level directory of this distribution and
# https://github.com/OpenRC/openrc/blob/master/AUTHORS
#
# This file is part of OpenRC. It is subject to the license terms in
# the LICENSE file found in the top-level directory of this
# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
# This file may not be copied, modified, propagated, or distributed
# except according to the terms contained in the LICENSE file.

description=&quot;start getty on a terminal line&quot;
supervisor=supervise-daemon
baud=&quot;38400&quot;
port=&quot;${RC_SVCNAME#*.}&quot;
respawn_period=&quot;${respawn_period:-60}&quot;
term_type=&quot;${term_type:-linux}&quot;
getty_options=&quot;--noclear&quot;
command=/sbin/getty
command_args_foreground=&quot;${getty_options} ${port} ${baud} ${term_type}&quot;
pidfile=&quot;/run/${RC_SVCNAME}.pid&quot;

depend() {
	after local
	keyword -prefix
}

start_pre() {
	if [ -z &quot;$port&quot; ]; then
		eerror &quot;${RC_SVCNAME} cannot be started directly. You must create&quot;
		eerror &quot;symbolic links to it for the ports you want to start&quot;
		eerror &quot;getty on and add those to the appropriate runlevels.&quot;
		return 1
	else
		export EINFO_QUIET=&quot;${quiet:-yes}&quot;
	fi
}

stop_pre()
{
	export EINFO_QUIET=&quot;${quiet:-yes}&quot;
}
EOF</code></pre></div><p>Geoff</p><p>edited to add quotes round &quot;EOF&quot; to stop substitutions.</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Tue, 17 Mar 2020 11:06:09 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=20539#p20539</guid>
		</item>
		<item>
			<title><![CDATA[Re: Newer versions of Openrc]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=20527#p20527</link>
			<description><![CDATA[<p><span class="bbu">Setting up openrc-init</span></p><p>The default set-up in Debian (and hence Devuan) is that SysV init is started at boot time.<br />SysV init, as usual reads <span class="bbc">/etc/inittab</span>, which is unchanged and thus sets up the <span class="bbc">ttys</span>.<br />Openrc gets called from within <span class="bbc">inittab</span> by <span class="bbc">rcS</span> and <span class="bbc">rc</span> which are scripts that have been<br />replaced by the openrc package.</p><p>If we replace SysV init with <span class="bbc">openrc-init</span>, then we need to have <span class="bbc">openrc</span> set up the <span class="bbc">ttys</span>. The Openrc sources<br />provide init files for <span class="bbc">agetty</span>. In various earlier attempts to get this working I had got a copy of <span class="bbc">agetty</span><br />in /etc/init.d and changed it into <span class="bbc">getty</span>. Then the Gentoo recommendation is to set up a link with the<br />name of the device appended. As I am testing this in a VM under Xen, the console is called <span class="bbc">hvc0</span> and<br />I also set up <span class="bbc">tty1</span>.</p><div class="codebox"><pre><code>cd /etc/init.d
chmod a+x getty
ln -s getty getty.hvc0
ln -s getty getty.tty1</code></pre></div><p>These are then activated in the usual Openrc way with</p><div class="codebox"><pre><code>rc-update add getty.hvc0
rc-update add getty.tty1</code></pre></div><p>The next thing was to add <span class="bbc">init=/sbin/openrc-init</span> to the kernel start-up.<br />As this was booting up under Xen using <span class="bbc">pygrub</span> I needed to edit <span class="bbc">menu.lst</span>.</p><div class="codebox"><pre><code>cd /boot/grub</code></pre></div><p>and edited <span class="bbc">menu.lst</span> so that the selected entry read :-</p><div class="quotebox"><blockquote><div><p>title&#160; &#160; &#160; &#160; &#160; &#160;Debian GNU/Linux, kernel 4.19.0-8-amd64<br />root&#160; &#160; &#160; &#160; &#160; &#160; (hd0,0)<br />kernel&#160; &#160; &#160; &#160; &#160; /boot/vmlinuz-4.19.0-8-amd64 root=/dev/xvda2 ro elevator=noop init=/sbin/openrc-init<br />initrd&#160; &#160; &#160; &#160; &#160; /boot/initrd.img-4.19.0-8-amd64</p></div></blockquote></div><p>Rebooting then worked successfully. The console messages included :-</p><div class="quotebox"><blockquote><div><p>[&#160; &#160; 1.960106] Run /init as init process<br />Loading, please wait...</p><p>... some output ...</p><p>OpenRC init version 0.42.1 starting<br />Starting sysinit runlevel</p><p>&#160; &#160;OpenRC 0.42.1 is starting up Linux 4.19.0-8-amd64 (x86_64) [XENU]</p><p>... some more output ...</p></div></blockquote></div><p>Having logged in via vnc <span class="bbc">ps axjf</span> shows, inter alia :-</p><div class="quotebox"><blockquote><div><p>PPID&#160; &#160; PID&#160; PGID&#160; &#160;SID TTY&#160; &#160; &#160; TPGID STAT&#160; &#160;UID&#160; &#160;TIME COMMAND<br />&#160; &#160; &#160; 0&#160; &#160; &#160; &#160;1&#160; &#160; &#160; &#160; 0&#160; &#160; &#160; &#160;0 ?&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;-1 S&#160; &#160; &#160; &#160; &#160; &#160;0&#160; &#160;0:01 /sbin/openrc-init<br />&#160; &#160; &#160; 1&#160; 2734&#160; 1795&#160; 1795 ?&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;-1 S&#160; &#160; &#160; &#160; &#160; &#160;0&#160; &#160;0:00 supervise-daemon getty.hvc0 --start --pidfile /run/getty.hvc0.pid --respawn-period 60 /sbin/<br /> 2734&#160; &#160;2735&#160; 2735&#160; 2735 hvc0&#160; &#160; &#160;2735 Ss+&#160; &#160; &#160; &#160; 0&#160; &#160;0:00&#160; \_ /sbin/getty --noclear hvc0 38400 linux<br />&#160; &#160; &#160; 1&#160; 2759&#160; 1795&#160; 1795 ?&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;-1 S&#160; &#160; &#160; &#160; &#160; &#160;0&#160; &#160;0:00 supervise-daemon getty.tty1 --start --pidfile /run/getty.tty1.pid --respawn-period 60 /sbin/<br /> 2759&#160; &#160;2761&#160; 2761&#160; 2761 tty1&#160; &#160; &#160; 2761 Ss+&#160; &#160; &#160; &#160; 0&#160; &#160;0:00&#160; \_ /sbin/getty --noclear tty1 38400 linux</p></div></blockquote></div><p>This all appears to be running nicely and it is possible to log in via the console.<br />Looking at /var/log/rc.log appears to be correct including when the machine gets shut down.</p><p>There are error messages about <span class="bbc">getty is the name of a real and virtual service</span>.<br />It would be good to get rid of those.</p><p>The other thing to do would be to ensure that either the <span class="bbc">agetty</span> or <span class="bbc">getty</span> init script<br />is left somewhere sensible by the package. I am not sure which name should be used and<br />whether it makes any difference.<br />It might be possible to put the (a)getty directly in /etc/init.d or maybe somewhere else,<br />perhaps with the other Gentoo init scripts, as examples.<br />The Gentoo people seem to like having fairly generic init.d files with corresponding configuration files<br />in /etc/conf.d, with the expectation that you would only edit the files in conf.d.</p><p>The other thing about running <span class="bbc">openrc-init</span> is that when you shut it down you need to use <span class="bbc">openrc-shutdown</span> instead of <span class="bbc">shutdown</span>.<br />This also takes the usual flags such as -r for reboot and -H for halt.</p><p>Geoff</p><p>edited to add chmod getty</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Mon, 16 Mar 2020 15:37:37 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=20527#p20527</guid>
		</item>
		<item>
			<title><![CDATA[Re: Newer versions of Openrc]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=20522#p20522</link>
			<description><![CDATA[<p>The only real problem with the patches was with <span class="bbc">src/Makefile</span>, as indicated above. The line that it complained about was :-</p><div class="quotebox"><blockquote><div><p>SUBDIR=&#160; &#160; &#160; &#160; test libeinfo librc rc</p></div></blockquote></div><p>which I edited to be :-</p><div class="quotebox"><blockquote><div><p>SUBDIR=&#160; &#160; &#160; &#160; libeinfo librc rc lsb2rcconf</p></div></blockquote></div><p>I think that the removal of <span class="bbc">test</span> meant that the original line did not match the patch. I also presume that <span class="bbc">lsb2rcconf</span> is to accommodate a real source code patch to handle the LSB headers in init files, providing dependency information, for Debian.</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Mon, 16 Mar 2020 10:22:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=20522#p20522</guid>
		</item>
		<item>
			<title><![CDATA[Re: Newer versions of Openrc]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=20521#p20521</link>
			<description><![CDATA[<p>Thank you for your comments!</p><p>The advice on using <span class="bbc">dch</span> to generate the changelog entry is very good, as the format is very important, or debmake will get upset!</p><p>The failure of signing did not seem to cause any problems but I assume that the <span class="bbc">-us -uc</span> flags stop the warnings.</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Mon, 16 Mar 2020 10:07:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=20521#p20521</guid>
		</item>
		<item>
			<title><![CDATA[Re: Newer versions of Openrc]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=20515#p20515</link>
			<description><![CDATA[<p>Nice guide, thanks!</p><div class="quotebox"><cite>Geoff 42 wrote:</cite><blockquote><div><p>edit debian/changelog to add the new version at the top</p></div></blockquote></div><p>You can use this to generate the new changelog entry automagically:</p><div class="codebox"><pre><code>dch -v $version_number</code></pre></div><p>Replace <strong>$version_number</strong> with the actual version number then add in the details for the change. The dch command can be found in the devscripts package.</p><p>If you export $DEBEMAIL &amp; $DEBFULLNAME from ~/.bashrc (or whichever shell initialisation file is appropriate) those will also be added in for you. See <a href="https://www.debian.org/doc/manuals/debmake-doc/ch03.en.html#email-setup" rel="nofollow">https://www.debian.org/doc/manuals/debm … mail-setup</a> (the rest of that guide is very good).</p><div class="quotebox"><cite>Geoff 42 wrote:</cite><blockquote><div><p>The signing fails because of the lack of my having a secret key.</p></div></blockquote></div><p>Use this to create unsigned packages:</p><div class="codebox"><pre><code>debuild -us -uc</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 15 Mar 2020 20:22:34 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=20515#p20515</guid>
		</item>
	</channel>
</rss>
