• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

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

In RHEL 6.4

How do I configure a script that will execute upon bootup

(This script will only contain "su - mqm")
Los Angeles1
Los Angeles1
2 Solutions
Normally you can put your script inside


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?
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:


(example name above, and be sure you make it excecutable by doing chmod 755)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now