Hello!
The procd file that I've written for my service is working fine in all aspects except for reloading when config file was changed... It start, stops and reload the service, it correctly gets the parameters from the config.
What I've already tried to trigger reloading:
First:
procd_set_param file /etc/config/mysrv
Then:
service_triggers()
{
procd_add_reload_trigger "/etc/config/mysrv"
}
The init file (with exact command/param names removed) is:
#!/bin/sh /etc/rc.common
USE_PROCD=1
START=95
STOP=01
service_triggers()
{
procd_add_reload_trigger "/etc/config/mysrv"
}
start_service() {
config_load mysrv
<getting params from config>
# Run service
procd_open_instance
procd_set_param <exact command with params>
# Respawn if killed
procd_set_param respawn
# Redirect stdout and stderr to syslog
procd_set_param stdout 1
procd_set_param stderr 1
# Restart if config was changed
procd_set_param file /etc/config/mysrv
procd_close_instance
}
I totally don't understand what am I doing wrong.
Please advise!
Thank you!