I am creating sample init script and can not send signal my script
start_service () {
procd_open_instance
procd_set_param command test_daemon
procd_set_param file "/etc/config/test_daemon"
procd_set_param user test_user
procd_close_instance
}
reload_service() {
esho "test_daemon"
proc_send_signal test_daemon
}
and output
root@OpenWrt:/etc/init.d# ./test_daemon reload
reloading test_daemon
Command failed: Not found
I use doc
Where did I go wrong ?
And I want to start a daemon by test_user owner but I start daemon by nobody owner.
How to change owner ?