Startup Command

9 July 2007

How to execute command when system start

By. Efriel Elyasa, efriel_e@yahoo.co.id 

1.     create file inside  /etc/init.d/ directory

a.     or using konsol command

# vi /etc/init.d/file-startup.sh

write inside:

/bin/bash

…executable command…

ketik :wq for save and exit from VI

 

setup access setup

# chmod +x /etc/init.d/ file-startup.sh

 

run this command for allway executing when computer boot

# update-rc.d file-startup.sh defaults

                       type this command to see another sturtup

# ls –l /etc/rc3.d/

Comments »

The URI to TrackBack this entry is: http://gagoo.blogsome.com/2007/07/09/startup-command-2/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.

Get free blog up and running in minutes with Blogsome | Theme designs available here