<?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=2569&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / shutdown does not poweroff nor restart]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2569</link>
		<description><![CDATA[The most recent posts in shutdown does not poweroff nor restart.]]></description>
		<lastBuildDate>Thu, 24 Jan 2019 00:23:18 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: shutdown does not poweroff nor restart]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=13802#p13802</link>
			<description><![CDATA[<p>According to <span class="bbu">(sda3)/etc/apt/sources.list</span> this thread is about &quot;<del>Debian</del> Devuan GNU/Linux 1.0 _Jessie_ - Official Release Candidate i386 CD Binary-1 20170504-15:34&quot;, a somewhat minimalistic operating system, with entries like:</p><p><span class="bbc">deb <span class="bbu"><a href="http://auto.mirror.devuan.org" rel="nofollow">http://auto.mirror.devuan.org</a></span>/merged/ jessie main contrib non-free<br />...</span></p><p>Some days ago I&#039;ve checked &quot;devuan_ascii_2.0.0_i386_desktop-live.iso&quot; from an usb stick: this <strong>problem doesn&#039;t exist any more.</strong> Some hours ago I&#039;ve placed this on <span class="bbu">(sda1)/etc/apt/sources.list</span>, and that system can poweroff (at least), reboot (yes) or hibernate (not thoroughly tested) as espected. </p><p><span class="bbc">deb <a href="http://pkgmaster.devuan.org/merged" rel="nofollow">http://pkgmaster.devuan.org/merged</a> ascii main&#160; <br />...</span></p><p>Conclusion: this thread is CLOSED.</p>]]></description>
			<author><![CDATA[dummy@example.com (guuml.dev1)]]></author>
			<pubDate>Thu, 24 Jan 2019 00:23:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=13802#p13802</guid>
		</item>
		<item>
			<title><![CDATA[Re: shutdown does not poweroff nor restart]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=13677#p13677</link>
			<description><![CDATA[<p>Thanks for the hint to </p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p> ... the next-to-final step in the shutdown sequence ...</p></div></blockquote></div><p>On my system I have found something interesting about differences in <span class="bbc">/sbin/halt</span> between devuan/jessie and the debian/jessie system used by the LMDE2 (Linuxmint Debian Edition called &quot;betsy&quot;). Some details just for the records:</p><ul><li><p>The minimalistic <strong>devuan/jessie</strong> uses <span class="bbc">/etc/rc0.d/K09halt</span> or <span class="bbc">/etc/rc6.d/K09reboot</span></p></li><li><p>Installing <strong>live-tools</strong> move this scripts to <span class="bbc">/etc/rc0.d/K10halt</span> and <span class="bbc">/etc/rc6.d/K10reboot</span>. BTW: the /etc/rc?.d/K09live-tools are used for /bin/live-medium-eject.</p></li><li><p>The <strong>LMDE2</strong> uses <span class="bbc">/etc/rc0.d/K12halt</span> and <span class="bbc">/etc/rc6.d/K12reboot</span> instead. And the system does poweroff or reboot as requested!</p></li></ul><p>Due ro my special configuration I can do: (Note: <span class="bbu">/srv/mnt/hda1/</span> is mount point for the LMDE2 partition, and <span class="bbu">/srv/mnt/hda3/</span> is just a symlink to the current devuan root partition)</p><ul><li><div class="codebox"><pre><code>$ LANG=C diff -s /srv/mnt/hda?/etc/init.d/halt 
Files /srv/mnt/hda1/etc/init.d/halt and /srv/mnt/hda3/etc/init.d/halt are identical</code></pre></div><p>Looking into <strong>/etc/init.d/halt</strong> reveals: </p><div class="codebox"><pre><code>log_action_msg &quot;Will now halt&quot;
halt -d -f $netdown $poweroff $hddown</code></pre></div></li><li><div class="codebox"><pre><code>$ LANG=C diff -s /srv/mnt/hda?/etc/init.d/halt 
Files /srv/mnt/hda1/etc/init.d/halt and /srv/mnt/hda3/etc/init.d/halt are identical</code></pre></div><p>Looking into <strong>/etc/init.d/reboot</strong> reveals: </p><div class="codebox"><pre><code>log_action_msg &quot;Will now restart&quot;
halt -d -f -i</code></pre></div></li></ul><p>Trying some options according to <span class="bbc">man halt</span> doesn&#039;t help but I found:</p><div class="codebox"><pre><code>$ ls -lgG /srv/mnt/hda?/sbin/halt
-rwxr-xr-x 1 13820 Apr  6  2015 /srv/mnt/hda1/sbin/halt
-rwxr-xr-x 1 13820 Mai 29  2015 /srv/mnt/hda3/sbin/halt</code></pre></div><p>Ok, the <ins>devuan /sbin/halt</ins> is slightly newer then LMDE2 /sbin/halt. And <em>both are the same size</em>. This is not surprising because devuan/jessie ought to be &quot;compatible&quot; with debian/jessie. But now:</p><div class="codebox"><pre><code>$ LANG=C cmp -l /srv/mnt/hda?/sbin/halt
  409 337 271
((snipped))
  428 362   2</code></pre></div><p>This looks like &quot;recompiling during package building&quot;. My /sbin/halt comes from:<br /><span class="bbc">Package: sysvinit-core</span><br /><span class="bbc">Version: 2.88dsf-59.2+devuan2</span><br /><span class="bbc">Maintainer: Roger Leigh &lt;rleigh@debian.org&gt;</span><br /><span class="bbc">Homepage: <a href="https://git.devuan.org/packages-base/sysvinit" rel="nofollow">https://git.devuan.org/packages-base/sysvinit</a></span></p><p>Just for the records: As of this writing I don&#039;t how and when this differences between devuan and debian (or lmde?) are introduced. Should I consider this as a &quot;missing feature&quot; of the now oldstable devuan?</p>]]></description>
			<author><![CDATA[dummy@example.com (guuml.dev1)]]></author>
			<pubDate>Sat, 12 Jan 2019 16:01:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=13677#p13677</guid>
		</item>
		<item>
			<title><![CDATA[Re: shutdown does not poweroff nor restart]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=13585#p13585</link>
			<description><![CDATA[<p>Thank you for the answers and a happy new year for all! </p><p>The first glue I&#039;ve got is to explain the question more briefly: I&#039;m talking about a <strong>minimalistic devuan/jessie+xfce</strong> on an <strong>acer travelmate 2410</strong>. In mai 2017 it was straightforward to place the system in <span class="bbc">/dev/sda3</span> (20GB) with <strong>LANG=de_DE.UTF-8</strong>. As times goes by the debian/jessie-derived system on <span class="bbc">/dev/sda1</span> (20GB, too) has to be replaced with devuan/ascii+mate as soon as possible. There are two independent problems that I&#039;m trying to understand:</p><ul><li><p><strong>(Problem #1):</strong> <strong>No xfce-user</strong> with UID&gt;=1000 is able to halt, restart, hibernate or standby the machine <strong>without</strong> <ins>xfce4-session</ins> and <ins>upower</ins>, the last is introducing 14 more packages. (problem #1 solved by questioning problem #2 ;-)</p></li><li><p><strong>(Problem #2):</strong> After the lines <span class="bbc">&quot;system halted&quot;</span> or <span class="bbc">&quot;system will restart&quot;</span> <strong>nothing more happens!</strong> The only thing remaining is <em>press the power button <span class="bbu">long enough until</span> the machine powers off</em>.</p></li></ul><p>On the second approach I want to reply to each provided answer:</p><h5>1. bring the system down</h5><p>Although I&#039;m not a native speaker of english I am aware of reading <span class="bbc">LANG=C man shutdown</span>, I am able to create an <strong><ins>/etc/shutdown.allow</ins></strong> for myself, and there are no obvious flaws in <strong><ins>/etcinittab</ins></strong> for me. The problem just still persists.</p><h5>2. BIOS and syslog</h5><p>In response to chris2be8:</p><div class="quotebox"><blockquote><div><p>How long did you wait before pressing the power button? ...</p></div></blockquote></div><p>The system writes &quot;halted&quot; or &quot;restart&quot; and stops working afterwards. Then I have to press the power button long enough for powering the machine off. And later then I have to press the button again to restart again.</p><div class="quotebox"><blockquote><div><p>Look in the BIOS to see if there are any options that might affect shutdown processing ...</p></div></blockquote></div><p>It&#039;s hard to believe that&#039;s the case: Since 2014 this machine runs &quot;linuxmint debian edition MATE&quot; and does poweroff/reboot/hibernate with sysV init as expected. This problem looks like a difference between debian/jessie (with linuxmint additions?) and devuan/jessie.</p><div class="quotebox"><blockquote><div><p>Look in syslog etc to see if any interesting messages are there.</p></div></blockquote></div><p>Nice point, but which pattern I should grep in <ins>/var/log/*</ins>? </p><h5>3. live-tools</h5><p>ralph.ronnquist wrote:</p><div class="quotebox"><blockquote><div><p>Basically, <em>live-tools</em> inserts a next-to-final step in the shutdown sequence ...</p></div></blockquote></div><p>Yup, there may be missings links in <span class="bbc">ls -l /etc/rc{0,6}.d/*</span> ... at least in devuan/jessie.</p><h5>Conclusion</h5><p>Thanks for your suggestions and updating my knowledge about sysvinit. Up to now this problem is not solved in the <em>oldstable</em> jessie, but there is a good chance the problem does not exists in <em>stable</em> ascii.</p>]]></description>
			<author><![CDATA[dummy@example.com (guuml.dev1)]]></author>
			<pubDate>Sat, 05 Jan 2019 00:25:58 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=13585#p13585</guid>
		</item>
		<item>
			<title><![CDATA[Re: shutdown does not poweroff nor restart]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=13507#p13507</link>
			<description><![CDATA[<p>Do you have <span class="bbc">live-tools</span> installed?<br />If so, you should disable <span class="bbc">/bin/live-medium-eject</span>, e.g by renaming it to <span class="bbc">/bin/live-medium-ejectOFF</span>.</p><p>Basically, <span class="bbc">live-tools</span> inserts a next-to-final step in the shutdown sequence that by default will want to eject the live medium, and then wait indefinitely for user confirmation. That step has many failure cases that simply end in silently waiting indefinitely (before allowing <span class="bbc">halt</span> to happen), and yet it&#039;s not a needed step at all. You might even want to patch it more elegantly, i.e., exclude it from the shutdown and reboot sequences, if this seems to fix your problem.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 29 Dec 2018 23:34:00 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=13507#p13507</guid>
		</item>
		<item>
			<title><![CDATA[Re: shutdown does not poweroff nor restart]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=13496#p13496</link>
			<description><![CDATA[<p>How long did you wait before pressing the power button? I&#039;ve heard of delays of a few minutes during shutdown, could that be happening here? That&#039;s a fairly easy thing to test.</p><p>Look in the BIOS to see if there are any options that might affect shutdown processing (or support for different OSes).</p><p>What make and model is your laptop? Search for reported problems with that make and model (and BIOS version).</p><p>Look in syslog etc to see if any interesting messages are there.</p><p>Chris</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Sat, 29 Dec 2018 17:11:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=13496#p13496</guid>
		</item>
		<item>
			<title><![CDATA[Re: shutdown does not poweroff nor restart]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=13495#p13495</link>
			<description><![CDATA[<div class="quotebox"><cite>guuml.dev1 wrote:</cite><blockquote><div><p>Please help me with some glue (links to further reading are ok).</p></div></blockquote></div><p>Ok, reading <span class="bbc">man shutdown</span> may help.</p><p>On a side note: If you post command output, it should better be in English. Putting <span class="bbc">LANG=C</span> infront of a command will achieve that (on a per-command basis).</p>]]></description>
			<author><![CDATA[dummy@example.com (msi)]]></author>
			<pubDate>Sat, 29 Dec 2018 15:42:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=13495#p13495</guid>
		</item>
		<item>
			<title><![CDATA[shutdown does not poweroff nor restart]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=13492#p13492</link>
			<description><![CDATA[<p>Sitting at a laptop with devuan/jessie both <span class="bbc">shutdown -h now</span> nor <span class="bbc">shutdown -r now</span> <strong>as root</strong> doesn&#039;t poweroff the &quot;halted&quot; system nor &quot;restart&quot;. The system is just &quot;going down for shutdown&quot;, shows the appropriate messages and stops working, but hardware is still running. I have to press the power key additionally long enough to switch off power, and press again for reboot. According to an answer to an old question elsewhere (see <br /><a href="https://askubuntu.com/questions/150539/how-to-make-xfce-show-the-shutdown-menu" rel="nofollow">How to make XFCE show the Shutdown Menu?)</a> I have found:</p><div class="quotebox"><blockquote><div><p>Short solution: Make sure that xfce4-session[1] and upower[2] are installed, and ...</p></div></blockquote></div><p>[1] Package: xfce4-session 4.10.1-10+devuan1 comes right out of the box</p><p>[2]&#160; but</p><div class="codebox"><pre><code>apt install upower
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Die folgenden zusätzlichen Pakete werden installiert:
  ethtool hdparm libimobiledevice4 libplist2 libpolkit-agent-1-0
  libpolkit-backend-1-0 libupower-glib1 libusbmuxd2 libx86-1 pm-utils
  policykit-1 powermgmt-base usbmuxd vbetool
Vorgeschlagene Pakete:
  apmd libusbmuxd-tools cpufrequtils wireless-tools radeontool
Die folgenden NEUEN Pakete werden installiert:
  ethtool hdparm libimobiledevice4 libplist2 libpolkit-agent-1-0
  libpolkit-backend-1-0 libupower-glib1 libusbmuxd2 libx86-1 pm-utils
  policykit-1 powermgmt-base upower usbmuxd vbetool
0 aktualisiert, 15 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
 ... (snipped)
usbmuxd (1.0.8+git20140527.e72f2f7-2) wird eingerichtet ...
Warnung: Auf das von Ihnen angegebene Home-Verzeichnis /var/lib/usbmux kann nicht zugegriffen werden: Datei oder Verzeichnis nicht gefunden
Lege Systembenutzer »usbmux« (UID 103) an ...
Lege neuen Benutzer »usbmux« (UID 103) mit Gruppe »plugdev« an ...
Erstelle Home-Verzeichnis »/var/lib/usbmux« nicht.</code></pre></div><p>It&#039;s somewhat obvious that I have missed the point, the problem still persists: As root of my laptop there should be a way to poweroff or reboot via command line.</p><p>Please help me with some glue (links to further reading are ok).</p>]]></description>
			<author><![CDATA[dummy@example.com (guuml.dev1)]]></author>
			<pubDate>Sat, 29 Dec 2018 14:44:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=13492#p13492</guid>
		</item>
	</channel>
</rss>
