|
@ -4,7 +4,7 @@ |
|
|
# This is free software, licensed under the GNU General Public License v2. |
|
|
# This is free software, licensed under the GNU General Public License v2. |
|
|
# See /LICENSE for more information. |
|
|
# See /LICENSE for more information. |
|
|
# |
|
|
# |
|
|
START=51 |
|
|
|
|
|
|
|
|
START=60 |
|
|
USE_PROCD=1 |
|
|
USE_PROCD=1 |
|
|
|
|
|
|
|
|
DEFAULT=/etc/default/nut |
|
|
DEFAULT=/etc/default/nut |
|
@ -53,13 +53,17 @@ service_reload() { |
|
|
config_foreach nut_upscgi_add host |
|
|
config_foreach nut_upscgi_add host |
|
|
config_foreach nut_upscgi_upsset upsset |
|
|
config_foreach nut_upscgi_upsset upsset |
|
|
|
|
|
|
|
|
chmod 640 /var/etc/nut/hosts.conf |
|
|
|
|
|
|
|
|
[ -s "$UPSCGI_C" ] && chmod 640 "$UPSCGI_C" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
start_service() { |
|
|
start_service() { |
|
|
service_reload |
|
|
service_reload |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
reload_service() { |
|
|
|
|
|
service_reload |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
stop_service() { |
|
|
stop_service() { |
|
|
rm -f "$UPSCGI_C" |
|
|
rm -f "$UPSCGI_C" |
|
|
rm -f "$UPSCGI_S" |
|
|
rm -f "$UPSCGI_S" |
|
|