Solved

RHEL, start up script

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

Database Solutions Engineer FAQs

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller single-server environments.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

622 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