Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828061 - sys-apps/sysvinit-2.99 - missing integration with /etc/conf.d/bootlogd
Summary: sys-apps/sysvinit-2.99 - missing integration with /etc/conf.d/bootlogd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-03 08:23 UTC by Bogdan
Modified: 2021-12-03 11:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for /etc/init.d/bootlogd file (bootlogd.patch,301 bytes, patch)
2021-12-03 08:23 UTC, Bogdan
Details | Diff
patch for /etc/init.d/bootlogd file (bootlogd.patch,301 bytes, patch)
2021-12-03 08:26 UTC, Bogdan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(-)