usp-js: fix publishing of USP agent endpoint ID

Also remove triggering on "network" and "mosquitto" configuration
change as it is not necessary re-publish on "network" change and
re-publishing on "mosquitto" change does not work anyway as it is not
possible to guarantee that "uspjs" is reloaded after "mosquitto" has
already been reloaded and is up and running.
This commit is contained in:
Erik Karlsson 2023-04-03 00:46:32 +02:00
parent 13c0240e55
commit 176bbf7566

View file

@ -60,14 +60,9 @@ publish_endpoint()
}
start_service() {
procd_open_instance uspjs
procd_close_instance
}
reload_service() {
publish_endpoint
}
service_triggers() {
procd_add_reload_trigger "obuspa" "network" "mosquitto"
procd_add_reload_trigger "obuspa"
}