Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

RHEL, start up script

Posted on 2012-03-16
1
Medium Priority
?
251 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
legolasthehansy earned 2000 total points
ID: 37730574
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

Docker-Compose to Simplify Multi-Container Builds

Our veteran DevOps Author takes you through how to build a multi-container environment, managed with a single utility in order to simplify your deployments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

730 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