Following the below steps
.
#xx is your script or executable file
#copy xx to /etc/init.d/xx
#give permission
chmod 755 /etc/init.d/xx
#-- register autostart
update-rc.d /etc/init.d/xx defaults
#-- remove autostart
update-rc.d -f /etc/init.d/xx remove
.
reboot and test.
๐๐ป♂️ Thank you.
www.marearts.com
No comments:
Post a Comment