On 1/8/22 21:40, Alejandro Colomar (man-pages) wrote:
On 1/8/22 21:37, Alejandro Colomar (man-pages) wrote:
Hi Dmitry,

On 1/7/22 17:48, Dmitry Goncharov wrote:
On Thu, Jan 6, 2022 at 2:13 PM Alejandro Colomar (man-pages)
<alx.manpa...@gmail.com> wrote:
  I could try to write a simpler Makefile

That would be good. We need to be able to reproduce the crash.

I couldn't reproduce it with a simple Makefile with a few includes and a few sleeps.

Would you mind if I send you the script with which I generated the Makefiles, and you run it in a virtual machine?

I run it on a Devuan install with sysvinit.

The steps are:

$ sudo mkdir /etc/rc.mk.d/
$ sudo ./script_insserv.sh
$ sudo cp ./Makefile /etc/rc.mk.d/Makefile
$ sudo sed -i 's/startup stop$/echo foo/'
$ sudo sed -i 's,startup [^ ]$,make -C "/etc/rc.mk.d/" "$runlevel" -j 2'

I forgot the file name for the sed calls. Append '/lib/init/rc' to those lines.  If you try on a different distro, use whatever patch the main rc

D'oh!  s/patch/path/

script lives in, but you may need to edit it differently if it is different.  I also forgot the last comma ',' in the sed s,,, command.

Regards,

Alex


--
Alejandro Colomar
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/

Reply via email to