creating an init script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subjecthttps://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux