Solved

RHEL, start up script

Posted on 2012-03-16
1
245 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 500 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

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…
Fine Tune your automatic Updates for Ubuntu / Debian
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

751 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