Create a procd init script

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 ?

The problem is here:

3 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.