Closed sinclairpaul closed 5 months ago
The nut.sh
script has been modified to update the shutdown behavior. Specifically, when running in netserver
mode, the shutdown command has been changed to use /run/s6/basedir/bin/halt
instead of the previous command. Additionally, a new condition has been added to set the shutdown command to /usr/bin/shutdownhost
if shutdown_host
is true, enhancing how shutdown processes are managed.
File | Change Summary |
---|---|
.../cont-init.d/nut.sh | Updated shutdowncmd assignment for netserver mode to use /run/.../halt . Added condition to set shutdowncmd to /usr/bin/shutdownhost when shutdown_host is true. |
In the script where the commands reside, 🖥️
A little tweak, a shift in stride. 🎵
Netservers halt with a new command,
A smoother shutdown, neat and planned.
Host shutdowns now clear and bright, 🌟
Thanks, nut.sh, for doing it right!
~ CodeRabbit 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Proposed Changes
Fix addon shutdown command, likely due to changes in S6 no longer functions, this aligns with the tear down commands within the service runs.
Summary by CodeRabbit
shutdown_host
is true, improving shutdown reliability.