View Single Post
widebody911 widebody911 is offline
Too big to fail
 
widebody911's Avatar
 
Join Date: Jan 2002
Location: Carmichael, CA
Posts: 33,894
Garage
Send a message via AIM to widebody911 Send a message via Yahoo to widebody911
So, you do a ps, and don't see your processes; have you validated that they really are running?

What are the perms on /proc?

To start something as root as another user, use su

su weather -c "/your/comand/here "

Quote:
Originally posted by bryanthompson

I have a box running RH9, and when I start it up and ps -A, I can see tons of mysql processes running. I have a java program that uses a mysql database, but it won't pick up those mysql processes... either they're some other type, or they're running on the wrong port, or there's a bigger problem. Anyway, if I /usr/local/mysql/bin/mysqld_safe & from root then run my java prog, it all works fine.

Anyway... I added my mysqld_safe command to my /etc/rc.local and rebooted, but didn't see it in my process list, and my java prog didn't see it either. I tried running the startup command from the terminal, and it yelled at me saying that it was already in use.

What I need to do, is have it so when the computer's turned on it will start the mysql server, then run my java program. I'd like to have the java program run as user "weather" and the mysqld started as root.
__________________
"You go to the track with the Porsche you have, not the Porsche you wish you had."
'03 E46 M3
'57 356A
Various VWs
Old 11-17-2004, 01:55 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #21 (permalink)