aboutsummaryrefslogtreecommitdiff
path: root/net/p910nd/files
diff options
context:
space:
mode:
authorChen Minqiang <ptpt52@gmail.com>2020-11-25 23:15:08 +0800
committerChen Minqiang <ptpt52@gmail.com>2020-11-26 15:47:07 +0800
commit44410b7350b2d596c4654ac7c47bda1b23b5ab5f (patch)
tree74fa609ec6fbc3238546165f04522581f98606fe /net/p910nd/files
parent233fe27d8229a025d0e048d0940ce7e5b4750787 (diff)
p910nd: config trigger reload and default disabled
Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
Diffstat (limited to 'net/p910nd/files')
-rw-r--r--net/p910nd/files/p910nd.init9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/p910nd/files/p910nd.init b/net/p910nd/files/p910nd.init
index 0eadebd65..2ddbdc712 100644
--- a/net/p910nd/files/p910nd.init
+++ b/net/p910nd/files/p910nd.init
@@ -29,7 +29,7 @@ start_service() {
start_p910nd() {
local section="$1" runas_root
- config_get_bool "enabled" "$section" "enabled" '1'
+ config_get_bool "enabled" "$section" "enabled" '0'
if [ "$enabled" -gt 0 ]; then
args="-d "
config_get port "$section" port
@@ -57,3 +57,10 @@ start_p910nd() {
procd_close_instance
fi
}
+
+service_triggers()
+{
+ procd_open_trigger
+ procd_add_config_trigger "config.change" "p910nd" /etc/init.d/p910nd reload
+ procd_close_trigger
+}