|
|
@ -198,9 +198,12 @@ _procd_add_config_trigger() { |
|
|
|
_procd_add_reload_trigger() { |
|
|
|
_procd_add_reload_trigger() { |
|
|
|
local script=$(readlink "$initscript") |
|
|
|
local script=$(readlink "$initscript") |
|
|
|
local name=$(basename ${script:-$initscript}) |
|
|
|
local name=$(basename ${script:-$initscript}) |
|
|
|
|
|
|
|
local file |
|
|
|
|
|
|
|
|
|
|
|
_procd_open_trigger |
|
|
|
_procd_open_trigger |
|
|
|
_procd_add_config_trigger "config.change" $1 /etc/init.d/$name reload |
|
|
|
for file in "$@"; do |
|
|
|
|
|
|
|
_procd_add_config_trigger "config.change" "$file" /etc/init.d/$name reload |
|
|
|
|
|
|
|
done |
|
|
|
_procd_close_trigger |
|
|
|
_procd_close_trigger |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|