creating an init script

zelos zelos at wanadoo.fr
Wed Sep 28 08:15:40 UTC 2005


Hi everybody!

Currently using a Red Hat 7.2 server, I have to launch an application every startup as a normal, unprivilegied user...
I remember Mandrake and the /etc/init.d/skeleton file which was an example for writing init script of your own. Unfortunately, I don't know how to create my own init script under Red Hat.
More explanations:
1° log as user "toto"
2° launch a binary file "start_myapplication"
3° before rebooting, kill the application via "stop_myapplication", not the kill command!!!
As you can see, I don't want to launch those as ROOT, for security reasons. I think I can launch the process as "toto" user in the script but don't exactly remember howto...

Any idea?

Many thanks,
Zelos


More information about the redhat-list mailing list