How do I run the below lines of code automatically as root on server startup.
cd /opt/program_folder/ServiceManager/bin
nohup ./servce_manager DEV &
Currently, as soon as the server is up and running I log in as root (as this program needs to be run as root) and run the above lines of code.
How do I set up this code in rc.d to run automatically?
When the server goes down I do not worry as it does not need to be shutdown gracefully. The only way right now is to kill the process, if there is a need to shutdown the service_manager.
Tested the entry in crontab and worked like a charm. Thank You very much.
I have another question. I have a script (ksh script) that starts an application listener.
It is owned by a user scott (command for example: start_listener.ksh -a start ).
This also needs to start at the server start up as scott.