Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems starting a program in rc.d

Status
Not open for further replies.

Scion

Programmer
Oct 14, 2001
1
US
Sorry if I reposted, the other didn't take.

I have a resource manager (RM, a program which opens up and sits on other processes) that I am attempting to run on startup. I can run the program successfully, however the processes which start under it will not run at all. I've placed a script in /etc/init.d that calls another script which starts up the RM. If I do not start the RM on boot-up, but rather just run the script which starts it after I've logged in, it runs fine.
I initially thought that it the environment variables weren't getting set right (since the processes depend on these enviroment variables for execution), but I echo'ed the env to a file and all the pertinent variables are there. Any help would be most appreciated.
I know that the processes will not start without the env variables, and I'm assuming that if the variables show up in the env just before the process is executed, then those variables exist.

I su to myself so that I'm not running it as root.
I have Redhat 7.2-something, I can't find the exact version number.

Hopefully I've given you all the pertinent information. Thanks in advance.
Scion

"Jon Elway, you just won the Super Bowl. How about goin' a little nuts and getting those teeth fixed?"
--Will Ferrel as Harry Caray, ESPY awards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top