Thursday, March 11, 2010

How to run script in Start UP Linux

setting script in Linux start UP
Please do the Following step:
  1. Write a script file(Eg: new_script).
  2. make it executable (Eg:chmod +x new_script ).
  3. Copy the script in to /etc/init.d/
  4. ln -s /etc/init.d/new_script /etc/rc5.d/S50new_script
  5. ln -s /etc/init.d/new_script /etc/rc5.d/K50new_script
  6. Restart the machine.
After the restart your script will work in start up.

No comments:

Post a Comment