Devuan logs - #319, boring messages


Message sent to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:


X-Loop: owner@bugs.devuan.org
Subject: bug#319: openrc savecache doesnt run start()
Reply-To: dxrobertson <dxrobertson@gmail.com>, 319@bugs.devuan.org
Resent-From: dxrobertson <dxrobertson@gmail.com>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: owner@bugs.devuan.org
Resent-Date: Tue, 23 Apr 2019 11:33:01 UTC
Resent-Message-ID: <handler.319.B.15560190063036@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: report 319
X-Devuan-PR-Package: openrc
X-Devuan-PR-Keywords: 
Received: via spool by submit@bugs.devuan.org id=B.15560190063036
          (code B ref -1); Tue, 23 Apr 2019 11:33:01 UTC
Received: (at submit) by bugs.devuan.org; 23 Apr 2019 11:30:06 +0000
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Tue, 23 Apr 2019 13:30:06 +0200 (CEST)
Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 53D40F60BFE
	for <submit@bugs.devuan.org>; Tue, 23 Apr 2019 13:29:27 +0200 (CEST)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="C+AX43D9";
	dkim-atps=neutral
Received: by mail-ed1-f42.google.com with SMTP id d55so12305944ede.0
        for <submit@bugs.devuan.org>; Tue, 23 Apr 2019 04:29:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=mime-version:from:date:message-id:subject:to;
        bh=HZ5RCMrqwFa8jDwp8VqjETDI0m8ARpu9iHkvRBk3zpg=;
        b=C+AX43D9+iLXWI49SGI38wlLcgak7/wnYnOzwzvgwm22YzLv9IUAAEeOb8eyIbaoRX
         +dN7te2zVLSUCy/N6TT5AhYPg7K5BkQ+wjdO/LQ6JNkOE59RKWuXAm0wav/iyX3iQTRD
         5rBWRRZDN/5zvyohN11/mIot13fJ0tzDmGnI7jqomPZSueg8yWbs/vmTOXfHtXn/uSBV
         pa9zXWM/+gRhJewCWP3+XRtGg+PkIPmn7gGw6RapEQFoCS4sveS2Q1K600NrvgDgC+Dz
         SlPgrdeShu2fApcDnS9+LRac5yM+kpviKgc2t6TfLG4xS+oBL53ef9ZrY65xeolw7IE2
         hQ+Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
        bh=HZ5RCMrqwFa8jDwp8VqjETDI0m8ARpu9iHkvRBk3zpg=;
        b=Hsxkt8Zw7x7lSjeGZtVxBLpYOjYt4etAcqiMNRJLEWO/v87W2reb1ppkm0H1IL/i00
         ubHyr1ddNAl87QYknHtXbmwGglxZj2CjnD6Unoj97xPAfNioI0CJFxYEOKZ5zMaT9I4a
         aJME1J/bX+Y+YpAwCm5Gj4vNH7eNa7bXbLawDRwVvQkNUwatsv+JuPQ0LZWzjKaftKr4
         2z7e/rBZfJNRs6K6x+2Vxl3g1J2hjzAY9UDimeUf+9rHIkq8PZTv8tThLgdtXzejR01j
         lkUglIzC/ipizsFqqslANP+7Tkd/yLvIYwRLbRT44CJZYsCjEdWfOhZLa+K0gKf+XvH2
         NrKw==
X-Gm-Message-State: APjAAAW2FIWiUsdtr6weI8vfrk69icBC/QwAqWQ2O7tvrUjHHb97K7oY
	bUdaxMBpGS61tLvSwu6QG/S4z12s6PqVDhQKdGwcgD0MdPE=
X-Google-Smtp-Source: APXvYqxbFV8lzkzH/JJIKblbSOiWq5BO0oSv/9ASAU00tic8IV1lGQtnOo52ASpcNdYvyf1HaXIf/wKoYYguS+xAwDw=
X-Received: by 2002:a17:906:7496:: with SMTP id e22mr12603960ejl.45.1556018966596;
 Tue, 23 Apr 2019 04:29:26 -0700 (PDT)
MIME-Version: 1.0
From: dxrobertson <dxrobertson@gmail.com>
Date: Tue, 23 Apr 2019 07:29:14 -0400
Message-ID: <CAMg23T4Np0aF8YLXrD6aHq=+XpADCOrnBgBU_a3uh-xzdAKWDA@mail.gmail.com>
To: submit@bugs.devuan.org
Content-Type: multipart/mixed; boundary="000000000000c4b95f058730e52d"
X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,
	RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled
	version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

--000000000000c4b95f058730e52d
Content-Type: multipart/alternative; boundary="000000000000c4b95b058730e52b"

--000000000000c4b95b058730e52b
Content-Type: text/plain; charset="UTF-8"

Package: openrc

Version: 0.40.3-1

Severity: normal



Dear Maintainer,


The start() routine in /etc/init.d/savecache does not run. If you run my

attached savecache (rc-service savecache start), "SAVECACHE TEST GOT HERE"
will

be displayed, but "SAVECACHE TEST NOT GETTING HERE" will not be displayed.
The start() routine is never entered.


The problem stems from the LSB header information in savecache. These lines
of

code are somehow confusing openrc-run, openrc-run never runs start().


If the LSB header info is removed, savecache runs fine; start() is then run.




Next issue, is savecache even needed? It appears this script is to run in

runlevel off at shutdown, to save /run/openrc/deptree and
/run/openrc/softlevel

to /lib/rc. Arent deptree and softlevel always re-generated at startup
anyway?

Are these cached files in /lib/rc ever used?




Next, if the cached files are used and needed, wouldnt /var/cache be a
better

home for them, something like /var/cache/openrc?




-- System Information:

Distributor ID: Devuan

Description: Devuan GNU/Linux beowulf/ceres

Release: 10

Codename: n/a

Architecture: x86_64


Kernel: Linux 4.19.0-4-amd64 (SMP w/4 CPU cores)

Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)

Shell: /bin/sh linked to /bin/dash

Init: sysvinit (via /sbin/init)

LSM: AppArmor: enabled

Versions of packages openrc depends on:

ii init-system-helpers 1.56+devuan1

ii insserv 1.18.0-2

ii libaudit1 1:2.8.4-2

ii libc6 2.28-8

ii libeinfo1 0.40.3-1

ii libpam0g 1.3.1-5

ii librc1 0.40.3-1

ii libselinux1 2.8-1+b1

openrc recommends no packages.


Versions of packages openrc suggests:

pn policycoreutils <none>

ii sysvinit-core 2.93-8+devuan1

--000000000000c4b95b058730e52b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><p style=3D"margin:0px;white-space:pre-wrap">Package: open=
rc</p>
<p style=3D"margin:0px;white-space:pre-wrap">Version: 0.40.3-1</p>
<p style=3D"margin:0px;white-space:pre-wrap">Severity: normal</p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p><p style=3D"margin:0px=
;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap">Dear Maintainer,</p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap">The start() routine in /etc/in=
it.d/savecache does not run.  If you run my</p>
<p style=3D"margin:0px;white-space:pre-wrap">attached savecache (rc-service=
 savecache start), &quot;SAVECACHE TEST GOT HERE&quot; will</p>
<p style=3D"margin:0px;white-space:pre-wrap">be displayed, but &quot;SAVECA=
CHE TEST NOT GETTING HERE&quot; will not be displayed.  The start() routine=
 is never entered.</p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap">The problem stems from the LSB=
 header information in savecache.  These lines of</p>
<p style=3D"margin:0px;white-space:pre-wrap">code are somehow confusing ope=
nrc-run, openrc-run never runs start().</p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap">If the LSB header info is remo=
ved, savecache runs fine; start() is then run.</p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap">Next issue, is savecache even =
needed?  It appears this script is to run in</p>
<p style=3D"margin:0px;white-space:pre-wrap">runlevel off at shutdown, to s=
ave /run/openrc/deptree and /run/openrc/softlevel</p>
<p style=3D"margin:0px;white-space:pre-wrap">to /lib/rc.  Arent deptree and=
 softlevel always re-generated at startup anyway?</p>
<p style=3D"margin:0px;white-space:pre-wrap">Are these cached files in /lib=
/rc ever used?</p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap">Next, if the cached files are =
used and needed, wouldnt /var/cache be a better</p>
<p style=3D"margin:0px;white-space:pre-wrap">home for them, something like =
/var/cache/openrc?</p><p style=3D"margin:0px;white-space:pre-wrap"><br></p>=
<p style=3D"margin:0px;white-space:pre-wrap"><br></p><p style=3D"margin:0px=
;white-space:pre-wrap"><br></p><p style=3D"margin:0px;white-space:pre-wrap"=
>

</p><p style=3D"margin:0px;white-space:pre-wrap">-- System Information:</p>=
<p style=3D"margin:0px;white-space:pre-wrap">Distributor ID:	Devuan</p><p s=
tyle=3D"margin:0px;white-space:pre-wrap">Description:	Devuan GNU/Linux beow=
ulf/ceres</p><p style=3D"margin:0px;white-space:pre-wrap">Release:	10</p><p=
 style=3D"margin:0px;white-space:pre-wrap">Codename:	n/a</p><p style=3D"mar=
gin:0px;white-space:pre-wrap">Architecture: x86_64</p><p style=3D"margin:0p=
x;white-space:pre-wrap"><br></p><p style=3D"margin:0px;white-space:pre-wrap=
">Kernel: Linux 4.19.0-4-amd64 (SMP w/4 CPU cores)</p><p style=3D"margin:0p=
x;white-space:pre-wrap">Locale: LANG=3Den_US.UTF-8, LC_CTYPE=3Den_US.UTF-8 =
(charmap=3DUTF-8), LANGUAGE=3Den_US.UTF-8 (charmap=3DUTF-8)<br></p><p style=
=3D"margin:0px;white-space:pre-wrap">Shell: /bin/sh linked to /bin/dash<br>=
</p><p style=3D"margin:0px;white-space:pre-wrap">Init: sysvinit (via /sbin/=
init)<br></p><p style=3D"margin:0px;white-space:pre-wrap">LSM: AppArmor: en=
abled<br></p><p style=3D"margin:0px;white-space:pre-wrap">
</p><p style=3D"margin:0px;white-space:pre-wrap">Versions of packages openr=
c depends on:<br></p><p style=3D"margin:0px;white-space:pre-wrap">ii  init-=
system-helpers  1.56+devuan1<br></p><p style=3D"margin:0px;white-space:pre-=
wrap">ii  insserv              1.18.0-2<br></p><p style=3D"margin:0px;white=
-space:pre-wrap">ii  libaudit1            1:2.8.4-2<br></p><p style=3D"marg=
in:0px;white-space:pre-wrap">ii  libc6                2.28-8<br></p><p styl=
e=3D"margin:0px;white-space:pre-wrap">ii  libeinfo1            0.40.3-1<br>=
</p><p style=3D"margin:0px;white-space:pre-wrap">ii  libpam0g             1=
.3.1-5<br></p><p style=3D"margin:0px;white-space:pre-wrap">ii  librc1      =
         0.40.3-1<br></p><p style=3D"margin:0px;white-space:pre-wrap">ii  l=
ibselinux1          2.8-1+b1<br></p><p style=3D"margin:0px;white-space:pre-=
wrap">
</p><p style=3D"margin:0px;white-space:pre-wrap">openrc recommends no packa=
ges.<br></p><p style=3D"margin:0px;white-space:pre-wrap"><br></p><p style=
=3D"margin:0px;white-space:pre-wrap">Versions of packages openrc suggests:<=
/p><p style=3D"margin:0px;white-space:pre-wrap">pn  policycoreutils  &lt;no=
ne&gt;<br></p><p style=3D"margin:0px;white-space:pre-wrap">ii  sysvinit-cor=
e    2.93-8+devuan1<br></p><p style=3D"margin:0px;white-space:pre-wrap">
</p><p style=3D"margin:0px;white-space:pre-wrap"><br></p><p style=3D"margin=
:0px;white-space:pre-wrap"><br></p></div>

--000000000000c4b95b058730e52b--
--000000000000c4b95f058730e52d
Content-Type: application/octet-stream; name=savecache
Content-Disposition: attachment; filename=savecache
Content-Transfer-Encoding: base64
Content-ID: <f_jutpaqf20>
X-Attachment-Id: f_jutpaqf20

IyEvc2Jpbi9vcGVucmMtcnVuCiMgQ29weXJpZ2h0IChjKSAyMDA3LTIwMTUgVGhlIE9wZW5SQyBB
dXRob3JzLgojIFNlZSB0aGUgQXV0aG9ycyBmaWxlIGF0IHRoZSB0b3AtbGV2ZWwgZGlyZWN0b3J5
IG9mIHRoaXMgZGlzdHJpYnV0aW9uIGFuZAojIGh0dHBzOi8vZ2l0aHViLmNvbS9PcGVuUkMvb3Bl
bnJjL2Jsb2IvbWFzdGVyL0FVVEhPUlMKIwojIFRoaXMgZmlsZSBpcyBwYXJ0IG9mIE9wZW5SQy4g
SXQgaXMgc3ViamVjdCB0byB0aGUgbGljZW5zZSB0ZXJtcyBpbgojIHRoZSBMSUNFTlNFIGZpbGUg
Zm91bmQgaW4gdGhlIHRvcC1sZXZlbCBkaXJlY3Rvcnkgb2YgdGhpcwojIGRpc3RyaWJ1dGlvbiBh
bmQgYXQgaHR0cHM6Ly9naXRodWIuY29tL09wZW5SQy9vcGVucmMvYmxvYi9tYXN0ZXIvTElDRU5T
RQojIFRoaXMgZmlsZSBtYXkgbm90IGJlIGNvcGllZCwgbW9kaWZpZWQsIHByb3BhZ2F0ZWQsIG9y
IGRpc3RyaWJ1dGVkCiMgZXhjZXB0IGFjY29yZGluZyB0byB0aGUgdGVybXMgY29udGFpbmVkIGlu
IHRoZSBMSUNFTlNFIGZpbGUuCgpkZXNjcmlwdGlvbj0iU2F2ZXMgdGhlIGNhY2hlcyBPcGVuUkMg
dXNlcyB0byBub24gdm9sYXRpbGUgc3RvcmFnZSIKCiMgQm9ndXMgTFNCIGhlYWRlcnMgdG8gc2ls
ZW5jZSBpbnNzZXJ2IHdhcm5pbmdzLgojIy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000000000c4b95f058730e52d--


Message sent:


X-Loop: owner@bugs.devuan.org
From: owner@bugs.devuan.org (Devuan bug Tracking System)
To: dxrobertson <dxrobertson@gmail.com>
Subject: bug#319: Acknowledgement (openrc savecache doesnt run start())
Message-ID: <handler.319.B.15560190063036.ack@bugs.devuan.org>
In-Reply-To: <CAMg23T4Np0aF8YLXrD6aHq=+XpADCOrnBgBU_a3uh-xzdAKWDA@mail.gmail.com>
References: <CAMg23T4Np0aF8YLXrD6aHq=+XpADCOrnBgBU_a3uh-xzdAKWDA@mail.gmail.com>
Precedence: bulk
X-Devuan-PR-Message: ack 319
X-Devuan-PR-Package: openrc
X-Devuan-PR-Keywords: 
Reply-To: 319@bugs.devuan.org

Thank you for the problem report you have sent regarding Devuan.
This is an automatically generated reply, to let you know your message has
been received.  It is being forwarded to the developers mailing list for
their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 owner@bugs.devuan.org

If you wish to submit further information on your problem, please send
it to 319@bugs.devuan.org (and *not* to
submit@bugs.devuan.org).

Please do not reply to the address at the top of this message,
unless you wish to report a problem with the bug-tracking system.

Devuan Bugs Owner
(administrator, Devuan bugs database)


Message sent to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:


X-Loop: owner@bugs.devuan.org
Subject: bug#319: openrc savecache doesnt run start()
Reply-To: dxrobertson <dxrobertson@gmail.com>, 319@bugs.devuan.org
Resent-From: dxrobertson <dxrobertson@gmail.com>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: owner@bugs.devuan.org
Resent-Date: Wed, 24 Apr 2019 22:03:01 UTC
Resent-Message-ID: <handler.319.B319.155614320129945@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: report 319
X-Devuan-PR-Package: openrc
X-Devuan-PR-Keywords: 
Received: via spool by 319-submit@bugs.devuan.org id=B319.155614320129945
          (code B ref 319); Wed, 24 Apr 2019 22:03:01 UTC
Received: (at 319) by bugs.devuan.org; 24 Apr 2019 22:00:01 +0000
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Thu, 25 Apr 2019 00:00:01 +0200 (CEST)
Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 2EBA3F60882
	for <319@bugs.devuan.org>; Wed, 24 Apr 2019 23:58:19 +0200 (CEST)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="j0Z491en";
	dkim-atps=neutral
Received: by mail-ed1-f50.google.com with SMTP id d46so17364441eda.7
        for <319@bugs.devuan.org>; Wed, 24 Apr 2019 14:58:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=mime-version:from:date:message-id:subject:to;
        bh=woxat73FyFUK5sozywdFQvTgIMFf9tmVQbSebiayfII=;
        b=j0Z491enI7x3fZFCXIORmeUXl8XezLVZh+mNfBVMnOvDzEGFiIpEqOI8IQpYbPhqol
         OrB2y1x7WZ9Dkx0uXvFMn/HpTxq7JO4GoPeiXXT7pBVHoszySMtaHN+6X85mV5w6D0PJ
         kFvN5vw3UlnITWhnNT0Bs+CLRiooOyCVEbzvvvNFvVd9We6TnDQjKx/jUM2mHVDAmgcF
         JA6qZjoWBARpyZ2sGxU+dUjocDcgLD8g7Bi6uIPhw4E2+KwLc64gqpxgT6WEuQJPAcul
         OQxtkcY6b48j3DqRRPCfIJPXLsrwux08svGW5OtholSFbhMthkqq2QaiAkBaSOKTbeOu
         O4Ig==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
        bh=woxat73FyFUK5sozywdFQvTgIMFf9tmVQbSebiayfII=;
        b=jGCh60MU3Lx0yM3H+ZkcSzHkrkPxThbGVH3rNFoPuwHyGosMKGCcFVs4voyKFh6PJF
         MRcPkgtXLINFxUvgdpXG2pxIt1x1kPn+ZmDXdy4o4/1n+FxpcouBhI+jqOaKlRXo40w3
         Hsel+8ffNeeKyMVCaiPUz9ZJW7uM4v3N8U9BYv5b3xBIUcYQP//QEeJtjjU0fVBB1RRN
         BWTCqPtMTwbVIvzXAlCJhZsz9wUVkFBkFmpORrr/b2/6JOSErs9iY3zhrngLdN5RoCiy
         6Qi3V89lB1aohPqoFyCbCLPCuO6fclUuE4jgy5a+EC/Db3lmU+jO+iZH+RhOaU6EMdfK
         yiZQ==
X-Gm-Message-State: APjAAAXm7UC/WeX/cV3vF+92L7KgSDqAvIfUbJyV3h6gDybMuPzuHP+c
	sp9dsjde1Givwmlj1RsRbsoApMs0teXS6Al1c4FCa4s7w2U=
X-Google-Smtp-Source: APXvYqxSQvBUs7ODr3T3gVPESKJSnpgKVRvuoPURbNMQ8G+mG66BhT4AQEM6TfYwwE4gVXl24zdpyygYcynbZjAapQc=
X-Received: by 2002:a50:8c24:: with SMTP id p33mr22203622edp.210.1556143098437;
 Wed, 24 Apr 2019 14:58:18 -0700 (PDT)
MIME-Version: 1.0
From: dxrobertson <dxrobertson@gmail.com>
Date: Wed, 24 Apr 2019 17:58:05 -0400
Message-ID: <CAMg23T5BqmgP_t9gMqRfy4Q9KPh0HMEAUQ-k-KtWNGhhbynPbw@mail.gmail.com>
To: 319@bugs.devuan.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,
	RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

I believe the problem to be in openrc-run.sh, the code at/around line 245:

# Load our script
lsbh=$(lsb2rcconf "$RC_SERVICE")
if [ -n "${lsbh}" ]; then
eval "${lsbh}"
else
sourcex "$RC_SERVICE"
.
.
.


I ran rc-service with the -d debug option:
rc-service -dv savecache start
Both with the LSB header present and not present, in /etc/init.d/savecache.

When running WITH the LSB header present, variable lsbh becomes:
+ lsb2rcconf /etc/init.d/savecache
+ lsbh=depend () {
        provide _all
}
And subsequently, the code at line 247 gets run:
if [ -n "${lsbh}" ]; then
eval "${lsbh}"
(This is the problem where savecache start() doesnt get run)

When running WITHOUT the LSB header present, variable lsbh becomes:
+ lsb2rcconf /etc/init.d/savecache
+ lsbh=
And subsequently, the "else" code at line 249 gets run:
else
sourcex "$RC_SERVICE"
.
.
.
(savecache start() runs)

To resolve the problem, the LSB header could simply be removed from
/etc/init.d/savecache.

I wonder why LSB is being examined at all in openrc-run scripts, I
thought (wrongly?) that LSB support was only added for /bin/sh run
scripts, so to use the sysvinit scripts without modification, in
openrc.


Message sent:


X-Loop: owner@bugs.devuan.org
From: owner@bugs.devuan.org (Devuan bug Tracking System)
To: dxrobertson <dxrobertson@gmail.com>
Subject: bug#319: Info received (was openrc savecache doesnt run start())
Message-ID: <handler.319.B319.155614320129945.ackinfo@bugs.devuan.org>
In-Reply-To: <CAMg23T5BqmgP_t9gMqRfy4Q9KPh0HMEAUQ-k-KtWNGhhbynPbw@mail.gmail.com>
References: <CAMg23T5BqmgP_t9gMqRfy4Q9KPh0HMEAUQ-k-KtWNGhhbynPbw@mail.gmail.com>
Precedence: bulk
X-Devuan-PR-Message: ack-info 319
X-Devuan-PR-Package: openrc
X-Devuan-PR-Keywords: 
Disabled-Doogie-Reply-To: 319@bugs.devuan.org

Thank you for the additional information you have supplied regarding
this problem report.  It has been forwarded to the developer(s) and
to the developers mailing list to accompany the original report.

Your message has been sent to the package maintainer(s):
 owner@bugs.devuan.org

If you wish to continue to submit further information on your problem,
please send it to 319@bugs.devuan.org, as before.

Please do not reply to the address at the top of this message,
unless you wish to report a problem with the bug-tracking system.

Devuan Bugs Owner
(administrator, Devuan bugs database)


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Mon, 6 Jul 2020 12:39:02 UTC