Solved

RHEL, start up script

Posted on 2012-03-16
1
226 Views
Last Modified: 2012-03-16
I am using RHEL 5.6

I want to write a script that will execute upon boot up

Does this funciton exist in Linux

What is the name of the file and path that I need
0
Comment
Question by:Los Angeles1
1 Comment
 
LVL 11

Accepted Solution

by:
legolasthehansy earned 500 total points
Comment Utility
Try to put this in /etc/rc.local
You can also put it in /etc/rc3.d (if your server starts in Run level 3) or /etc/rc5.d (if it starts up the GUI mode on startup)
Only thing you would have to do though would be to create a soft link to your script from here.

If in /etc/rc3.d
then do this -
cd /etc/rc3.d
ln -s /home/user/startupscript.sh S99Startme
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now