How do I go about registering a program as a service, programaticly?
I understand I have to make a special file in /etc/rc.d but is there odds that on some systems its not always going to be that path?
So is there a "real" way of doing it? I want to be able to do "service myapp start" and what not. And chkconfig myapp on/off to make it start at startup.
I'll be developing a hosting control panel system so I want it to act as a service. I may go a step further and even do a "service myapp recompile" feature.
I understand I have to make a special file in /etc/rc.d but is there odds that on some systems its not always going to be that path?
So is there a "real" way of doing it? I want to be able to do "service myapp start" and what not. And chkconfig myapp on/off to make it start at startup.
I'll be developing a hosting control panel system so I want it to act as a service. I may go a step further and even do a "service myapp recompile" feature.