Start service automatically on linux server
Add the service as automatically startup
- copy the startup script to
/etc/init.d
sudo chmod 755 /etc/init.d/your_script
- run the following commonds
cd /etc/init.d
sudo upate-rc.d your_script defaults xx(xx is the start sequence number)
Remove the startup service
cd /etc/init.d
sudo update-rc.d -f your_script remove