Subject: bug#319 closed by Mark Hindley <[email-masked]> (Re: bug#319: openrc savecache doesnt run start())

From: "Devuan bug Tracking System" <[email-masked]>
Date: Wed, 15 Feb 2023 16:48:05 +0000

This is an automatic notification regarding your bug report
which was filed against the openrc package:

#319: openrc savecache doesnt run start()

It has been closed by Mark Hindley <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Mark Hindley <[email-masked]> by
replying to this email.

-- 
319: https://bugs.devuan.org/cgi/bugreport.cgi?bug=319
Devuan Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#319: openrc savecache doesnt run start()
From: Mark Hindley <[email-masked]>
To: dxrobertson <[email-masked]>, [email-masked]
Date: Wed, 15 Feb 2023 16:45:25 +0000

Version: 0.45.2-2

This was fixed in Debian with the removal of the bogus LSB header from
savecache.

Closing.

Mark

Subject: openrc savecache doesnt run start()
From: dxrobertson <[email-masked]>
To: [email-masked]
Date: Tue, 23 Apr 2019 07:29:14 -0400

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