Solved

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

Posted on 2013-11-19
2
230 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Steps to follow for Maintenance of Servers 4 72
SMB share across internet 15 64
CentOS 7 Linux for HP DL380 G4 32Bits 7 46
list of sudo access for date range 5 29
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…
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 …
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…
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.

839 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