Devuan bug report logs - #319
openrc savecache doesnt run start()

version graph

Package: openrc; Maintainer for openrc is (unknown); Source for openrc is src:openrc.

Reported by: dxrobertson <dxrobertson@gmail.com>

Date: Tue, 23 Apr 2019 11:33:01 UTC

Severity: normal

Fixed in version 0.45.2-2

Done: Mark Hindley <mark@hindley.org.uk>

Full log


🔗 View this message in rfc822 format

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
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]
[savecache (application/octet-stream, attachment)]

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sun Nov 24 20:40:48 2024;