nut_webgui binary seem unable to daemonize on linux Alpine/musl #50
|
First of all, thank you for this simple and efficient software! If I omit the last directive in the above script, the application starts and runs correctly, but it doesn't go to background. |
Replies: 3 comments
|
Thanks! install.sh script indeed requires some additional care. I need to strip out some GNU specific extensions and add more init system support. I’ve just created an Alpine VM (version 3.24) and installed nut_webgui v0.10.2 x86_64 musl binary. My init file is almost exact the same. I only changed depend to /etc/init.d/nut_webgui #!/sbin/openrc-run
name="NUT Webgui"
description="nut_webgui - SImple NUT Web Interface"
depend() {
need net
}
command="/usr/local/bin/nut_webgui"
command_args="--config-file /etc/nut_webgui/config.toml --allow-env"
required_files="/etc/nut_webgui/config.toml /etc/nut_webgui/users.toml"
pidfile="/run/${RC_SVCNAME}.pid"
command_background=trueand I added it to the default runlevel So far, I can access the web page from another PC. Of course, my test uses the root user as the service owner. I’m not very familiar with OpenRC, but if your service config uses a different user ( |
|
Thanks.
I expected the nut_webgui daemon both backgrounds itself and does create a pidfile. So I thought this wasn't necessary but I was wrong because the firs option was not enough but the secon one worked. About |
|
Yes, |
Yes,
command_background=trueis necessary. nut_webgui does not daemonize/background itself.