Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 828061

Summary: sys-apps/sysvinit-2.99 - missing integration with /etc/conf.d/bootlogd
Product: Gentoo Linux Reporter: Bogdan <bogdan.pylypenko107>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch for /etc/init.d/bootlogd file
patch for /etc/init.d/bootlogd file

Description Bogdan 2021-12-03 08:23:12 UTC
Created attachment 757251 [details, diff]
patch for /etc/init.d/bootlogd file

I need boot log, written to file in a different path, other than default /var/log/boot.

At now, for realizing that task I need to modify command_args variable in /etc/init.d/bootlogd file.

In the future, when sys-apps/sysvinit package will be updated, then I need to make my changes or spend my time for dispatch-conf or something else.

I think, that more ideal way - by reading variables of /etc/conf.d/bootlogd from /etc/init.d/bootfontd.

Solution in patch (attached).

With this patch, I can use my favorite bootlogd command parameters without conflicts with changes of sysvinit package, like this:

> $ cat /etc/conf.d/bootlogd
> BOOTLOGD_ARGS="-p ${pidfile} -l /tmp/boot.log -e"
Comment 1 Bogdan 2021-12-03 08:26:46 UTC
Created attachment 757252 [details, diff]
patch for /etc/init.d/bootlogd file
Comment 2 Bogdan 2021-12-03 08:30:13 UTC
**
I think, that more ideal way - by reading variables of /etc/conf.d/bootlogd from /etc/init.d/bootlogd.

**
> $ cat /etc/conf.d/bootlogd
> BOOTLOGD_ARGS="-e -l /tmp/boot.log"
Comment 3 Larry the Git Cow gentoo-dev 2021-12-03 11:54:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba311ecca29333b688b1b5b9fe9725b77b9e5a88

commit ba311ecca29333b688b1b5b9fe9725b77b9e5a88
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2021-12-03 11:52:36 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2021-12-03 11:54:49 +0000

    sys-apps/sysvinit: Revbump so users can customize bootlogd startup
    
    Thanks-to: Bogdan <bogdan.pylypenko107@gmail.com>
    Closes: https://bugs.gentoo.org/828061
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 sys-apps/sysvinit/files/bootlogd.confd                              | 2 ++
 sys-apps/sysvinit/files/bootlogd.initd                              | 4 ++--
 sys-apps/sysvinit/{sysvinit-2.99.ebuild => sysvinit-2.99-r1.ebuild} | 1 +
 sys-apps/sysvinit/{sysvinit-3.00.ebuild => sysvinit-3.00-r1.ebuild} | 1 +
 4 files changed, 6 insertions(+), 2 deletions(-)