Bug#706676: bug 706676 remains in the newest sysvinit-core sid

Ryutaroh Matsumoto ryutaroh at ict.e.titech.ac.jp
Fri Feb 26 06:59:08 GMT 2021


> Sorry I meant
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695568#15

Sorry again, the above is obsolete for the newest sysvinit-core.
A correct patch is as follows:

--- usr/share/sysvinit/inittab	2021-02-21 22:53:09.000000000 +0900
+++ /tmp/inittab.lxc	2021-02-26 15:47:39.711010978 +0900
@@ -36,9 +36,9 @@
 #kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."
 
 # What to do when the power fails/returns.
-pf::powerwait:/etc/init.d/powerfail start
-pn::powerfailnow:/etc/init.d/powerfail now
-po::powerokwait:/etc/init.d/powerfail stop
+pf::powerwait:/sbin/shutdown -P +1
+pn::powerfailnow:/sbin/shutdown -P now
+po::powerokwait:/sbin/shutdown -c "Power supply recovered."
 
 # /sbin/getty invocations for the runlevels.
 #

Best regards, Ryutaroh



More information about the Debian-init-diversity mailing list