This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |
| docs:guide-developer:procd-init-script-example [2024/02/10 16:35] – [Loading service configuration] systemcrash | docs:guide-developer:procd-init-script-example [2024/02/10 17:38] (current) – [Enabling the service] systemcrash |
|---|
| <code> /etc/init.d/myservice enable</code> | <code> /etc/init.d/myservice enable</code> |
| |
| This will install a symlink for us in directory /etc/rc.d/ called S90myservice which point to our respective service script in /etc/init.d/. OpenWrt will start the services according the the order of S* scripts in /etc/rc.d/. To see the order you could simply run | This will install a symlink for us in directory /etc/rc.d/ called S95myservice (because ''START=95'') which points to our respective service script in /etc/init.d/. OpenWrt will start the services according the the order of S* scripts in /etc/rc.d/. To see the order you could simply run |
| |
| <code>$ ls -la /etc/rc.d/S*</code> | <code>$ ls -la /etc/rc.d/S*</code> |