I want an executable program to run on startup. For this reason, I created a shell script:
/etc/init.d/server. Then I run
chmod +x name_of_script and
update-rc.d server defaults.
#!/bin/sh cd /home/root/ ./Server_msg
Server_msg prints the messages from a client. Messages are received on static IP address 192.168.1.200.
Note: The connection is wireless: Static IP address 192.168.1.200 gets assigned to the device, by a script running also on startup, which loads the Wi-Fi driver's adapter.
When I added script server to run on startup as well, system is unable to run both scripts.