1/12/2022

run your script or executable file on ubuntu startup

 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