LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 04-03-2012, 11:12 AM   #1
drkhrse01
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
On Reboot process not restarting


Running SUSE 10 on z/Linux. We have a ooRexx application that we want running all the time. I want a script so that after a reboot the process starts automatically. Right now after a reboot I logon with the production userid and enter:
rexx MyProcess.REX &

Then I logoff. Our UE has been able to get it to start after reboot but only using root. I don't want this application running as root, I would prefer it run as the production userid, for this example call it z1234.

Any one have any examples I might try?

Thanks,
Brent
 
Old 04-03-2012, 11:15 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Add this to your rc.local:
Code:
 su - z1234 -c "rexx MyProcess.REX &"
That should do the job. For more information how to run commands as a different user have a look at
Code:
 man su
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restarting X without ctrl-alt-bksp or reboot cludwin LinuxQuestions.org Member Success Stories 9 11-04-2010 04:58 AM
Restarting the Process Suresh42 Programming 2 04-15-2009 05:28 AM
Restarting a halted process after boot? Maverick1182 Linux - Newbie 1 09-23-2006 07:42 AM
Restarting Slimserver process wbatzle Linux - Newbie 2 09-27-2005 05:51 PM
screen not restarting after reboot?? lucastic Linux - Hardware 4 07-19-2004 10:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 04:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration