Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve use on non-systemd init scheme #53

Closed
hameau opened this issue May 21, 2021 · 1 comment
Closed

Improve use on non-systemd init scheme #53

hameau opened this issue May 21, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@hameau
Copy link

hameau commented May 21, 2021

Hello,

OS : Devuan beowulf, init : SysV, headless, no X server
hd-idle: v1.15, installed using amd64.deb

hd-idle relies on systemd to put the process into the background and to provide system logging, which causes problems under other init schemes.

As distributed, the sysvinit script (introduced in response to #43) is not usable, because hd-idle does not detach itself from the init process, which stalls, halting the boot process (manual line wrap for readability):

[....] Starting the hd-idle daemon: hd-idlesymlinkPolicy=0, defaultIdle=0, defaultCommand=ata,\
debug=false, logFile=/var/log/hd-idle.log,\
devices={name=sdb, givenName=sdb, idle=300, commandType=ata}\
{name=sdc, givenName=sdc, idle=300, commandType=ata}\
{name=sdd, givenName=sdd, idle=300, commandType=ata}\
{name=sde, givenName=sde, idle=300, commandType=ata}

This is the same output as running hd-idle from the command line (#37).

It is possible to force hd-idle into the background by modifying the init script like this:

case "$1" in
    start)
        log_daemon_msg "Starting the hd-idle daemon" "hd-idle"

---     start-stop-daemon --start --quiet --oknodo --exec $DAEMON -- $HD_IDLE_OPTS
+++     start-stop-daemon --start --quiet --oknodo --background --exec $DAEMON -- $HD_IDLE_OPTS

        log_end_msg $?
        ;;

This allows the system to boot, but has two problems :

  • No feedback if hd-idle fails to start
  • No system log messages (only logs to logfile option, if set)

Would it be possible to look at these problems, please?

@adelolmo adelolmo added the bug Something isn't working label Jun 20, 2021
@adelolmo
Copy link
Owner

Closed by: #93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants