Hello everyone !
First of all, I know there are many threads on many websites regarding my issue, but despite all of my efforts, I can't get it work... !
Basically, what I want to do is make a .sh file running when my system boots.
What I've done so far :
- I created a new text editor file, typed in
so my computer reboots each day at midnight, and saved this file with the extension .sh on my desktopCode:sudo shutdown -r 00:00- I moved the file to the /etc/init.d directory using sudo mv command on terminal
- I did set up executable permission on script with terminal, typing
Code:chmod +x /etc/init.d/script.sh- I used the following command to get my file executed at my system startup :
Code:update-rc.d script.sh defaults 100
Have I done something wrong, or does it miss any step so I can get it work ?
Hope that anyone could help me on that ! Thank you very much.
Max
Bookmarks