How to start a script by root permission at boot time on Ubuntu server 8.10.

Today my Opmanger server is down, I start it again but my service doesn’t start by automatic at boot time. So I need to start it by root permission at startup time. And this is my solution.

1. Write your script for start a service

echo "Start my service!!!";
cd /path/of/my/script/


2. Change a permission file to execute

$ cd /path/of/my/script/
$ sudo chmod +x

3. Create a symbolic link file into /etc/init.d/

$ sudo ln -s /path/of/my/script/ /etc/init.d/

4. Add this script into start up time

$ sudo update-rc.d defaults
update-rc.d: warning: /etc/init.d/ missing LSB style header
 Adding system startup for /etc/init.d/ ...
   /etc/rc0.d/ -> ../init.d/
   /etc/rc1.d/ -> ../init.d/
   /etc/rc6.d/ -> ../init.d/
   /etc/rc2.d/ -> ../init.d/
   /etc/rc3.d/ -> ../init.d/
   /etc/rc4.d/ -> ../init.d/
   /etc/rc5.d/ -> ../init.d/

5. Test by restart your server and check this process by ps -ef | grep

$ ps -ef | grep


Thanks for original :

0 0 votes
Article Rating
Inline Feedbacks
View all comments
10 years ago

Gs8nFm dwdgblfmibfc

10 years ago

Thanks a lot !!! I’ll keep it in mind. Very usefull.

Buy Xtrasize
8 years ago

Good way of describing, and pleasant post to get data concerning my presentation focus,
which i am going to present in institution of higher education.