PDA

View Full Version : [ubuntu] Simple boot up script, possible? Or glorified complexity is "better" LOL



bbiandov
September 19th, 2011, 03:21 PM
Hi everyone,

The simplest task I though? Nooo - no such thing as simple.

I just want to execute bunch of commands on boot up. I do NOT want to run service; etc

https://help.ubuntu.com/community/UbuntuBootupHowto

This stuff is uber complicated and it wants to "shut down" the daemons on reboot and there hides the problem. When running just basic scripts there is NO active process remnant as is the case with daemons. So on reboot there is nothing to shutdown and the whole complex chain of boot up scripts mechanism fails.

Isn't there a simple blahblah.sh that gets executed ONCE on boot up and its forgotten forever thereafter?

~B

Lars Noodén
September 19th, 2011, 03:59 PM
Yes, there is. One place to call such scripts would be /etc/rc.local

bbiandov
September 19th, 2011, 11:52 PM
Yes, there is. One place to call such scripts would be /etc/rc.local

Thanks Noodén, I did know of that but for some reason the command lines remain untouched during boot. And yes I did read the comments in the file and made it executable yet none of the lines are executed upon boot up.

Any ideas? Thank you