Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 957613 - sys-apps/lm-sensors: openrc service scripts should be improved
Summary: sys-apps/lm-sensors: openrc service scripts should be improved
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low enhancement
Assignee: Mike Pagano
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-08 20:58 UTC by Filip Kobierski
Modified: 2025-06-12 15:27 UTC (History)
1 user (show)

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


Attachments
openrc service scripts patch (0001-Improve-the-openrc-init-scripts.patch,2.47 KB, patch)
2025-06-10 17:42 UTC, Mike Pagano
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Kobierski 2025-06-08 20:58:01 UTC
1. pidfile should not be configurable (sensord)
2. use $RC_SVCNAME in pidfile for pid uniqueness & genericness
     - maybe also interpret the variables inline?
3. should the user be able to remove the default _SSDARGS? (fanservice, sensord)
   - "You can use this configuration option to pass additional options"
Comment 1 Mike Pagano gentoo-dev 2025-06-10 17:42:10 UTC
Created attachment 932904 [details, diff]
openrc service scripts patch

Please take a look
Comment 2 Filip Kobierski 2025-06-12 13:23:56 UTC
Looks good, I think points 1 & 2 are solved!

Since the service script are being changed either way I also have one suggestion;
to shorten lm_sensors' stop function like this:

    stop(){ :; }

It behaves the same but is much shorter and more readable.
Comment 3 Mike Pagano gentoo-dev 2025-06-12 14:59:00 UTC
(In reply to Filip Kobierski from comment #2)
> Looks good, I think points 1 & 2 are solved!
> 
> Since the service script are being changed either way I also have one
> suggestion;
> to shorten lm_sensors' stop function like this:
> 
>     stop(){ :; }
> 
> It behaves the same but is much shorter and more readable.

Thank-you for your response. I'll grab the 'stop' item above, and commit.
Comment 4 Larry the Git Cow gentoo-dev 2025-06-12 15:27:50 UTC
The bug has been closed via the following commit(s):

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

commit 46c71991c2f1138679d74e6c8973fd2b68a30084
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2025-06-12 15:26:39 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2025-06-12 15:26:39 +0000

    sys-apps/lm-sensors/files: openrc service scripts clean-up
    
    Remove configurability of pid file
    Utilize RC_SVCNAME for pidfile
    Clean-up stop function
    
    Thanks to Filip Kobierski for the collaboration
    
    Closes: https://bugs.gentoo.org/957613
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 sys-apps/lm-sensors/files/fancontrol.initd | 11 ++++++-----
 sys-apps/lm-sensors/files/lm_sensors.initd |  5 +----
 sys-apps/lm-sensors/files/sensord.initd    | 14 +++++++-------
 3 files changed, 14 insertions(+), 16 deletions(-)