aboutsummaryrefslogtreecommitdiff
path: root/net/nut/files/nut_monitor
Commit message (Collapse)AuthorAge
* nut: refactor nut-monitor uci config filePascal Coudurier2022-01-11
| | | | | | | | Convert notifyflags options to lists as supported by the init script, so multiple options can be chosen. Add SYSLOG default option to individuals notifyflags instead of deprecated flag 1|0. Add comment for defaultnotify and individuals notifyflags about possible values. Signed-off-by: Pascal Coudurier <coudu@wanadoo.fr>
* nut: Reduce user error with POWERDOWNFLAGDaniel F. Dickinson2018-08-29
| | | | | | | | | Instead of making POWERDOWNFLAG an uci option the user can only change it via initscript edits. This avoids chance for users to miss the required change to nut-driver when setting an UCI option for nut-monitor which results in failure to do FSD on the UPS. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
* nut: Use diff non-privileged user for upsmonDaniel F. Dickinson2018-08-29
| | | | | | | | By default use a non-privileged user that is different than the server or driver (when they are running non-privileged). This is recommended by upstream. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
* nut: Make FSD really workDaniel F. Dickinson2018-08-29
| | | | | | | | Forced shutdown of the UPS was not actually happening before due to lack of specific commands doing the shutdown. This (and the nut-driver initscript) fix that. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
* nut: Use 'real' procd init for nut-monitorDaniel F. Dickinson2018-08-29
| | | | | | | | | This fully procdifies nut-monitor, which fixes some issues with very slow restarts (due to /lib/functions/procd.sh using a very long delay for non-native scripts doing restart) as well as gives respawning, etc. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
* net/nut: Build optional separate packages and ucifyDaniel Dickinson2017-01-11
With a LuCI app (of which I have one written) ucification makes sense (and is in fact needed), so ucify the initscripts. Also, rather than making selection of things to include an image a matter of selecting compile-time config options, make optional things into seperate packages that are built in default builds, and leave selection of what to include or not up to the user (e.g. using ImageBuilder, or adding packages via opkg). Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>