Solved

Linux, how to configure a script that will start at boot up

Posted on 2013-11-19
2
231 Views
Last Modified: 2013-11-19
In RHEL 6.4

How do I configure a script that will execute upon bootup

(This script will only contain "su - mqm")
0
Comment
Question by:Los Angeles1
2 Comments
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 250 total points
ID: 39660500
Normally you can put your script inside

/etc/rc.local

That will cause it to execute at run time.

However, you are using a command that is to change user.  This would not work this way.


Can you elaborate what exactly are you trying to achieve?
0
 
LVL 19

Accepted Solution

by:
xterm earned 250 total points
ID: 39660503
You can either edit /etc/rc.d/rc.local and put the command directly in there, or you can call the script name from rc.local

So either put in:

/path/to/command <command arguments>

or put in:

/usr/local/bin/myscript

(example name above, and be sure you make it excecutable by doing chmod 755)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux Hosting 16 73
awk sed 8 102
Running linux commands into linux system remotely using powershell 6 64
WordPress: Debugging from my Windows 10 Desktop 6 61
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

679 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