Link to home
Start Free TrialLog in
Avatar of AXISHK
AXISHK

asked on

Configure daemon on redhat

How to put the following services on Redhat such that it can start when it first bootup ? Tks

./mysql-proxy --proxy-address=:3306 --proxy-backend-addresses=xxxxxx:3306 --daemon
Avatar of arnold
arnold
Flag of United States of America image

You should always use full paths, add the line into /etc/rc2.d/rc.local
Avatar of AXISHK
AXISHK

ASKER

What file name and extension should I use ? Simply put the whole path and file into that file and that's all ??

Tks
Yes.
Rc.local is executed last and terminated first.

It does not include controls as a service would which you can use any of the ones in /etc/init.d as an example.
Avatar of AXISHK

ASKER

"It does not include controls as a service would which you can use any of the ones in /etc/init.d as an example."

What does you mean ? It is better to code it in a script similar to another one under /etc/init.d ?

Tks
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AXISHK

ASKER

Tks