This problem has been bugging me for a while, we have a program running on Solaris, which managed as a service well by SMF, can be enabled/disabled very easily.
Now, according to our market, we would like to migrate this service to RHEL 6.3, so we are trying to use Upstart to manage it and make it have the same behaviors like what it does on Solaris. Most of behaviors are good and fulfill our requirements, but when we stop the service, it still was started automatically on startup, this is not what we want. We want to make it be stopped no matter how many times we reboot or shutdown server after stopping the service.
I read this article, Ubuntu12.04: How to disable a daemon process at startup, it says, this feature can be done by Upstart 1.3, but we are limited to use RHEL 6.3, which Upstart package version is 0.6.7, and the most important thing is, no upgrade for Upstart and cannot switch to other platform. :(
So, my question is that: is there any alternative method to achieve my target but not change system and do not introduce any dependencies, and still, this service have to be managed by system, like SMF/Upstart/init.d.
A little more requirement here, we still want to implement a feature that, if user kill the service process, system can detect this and try to start the process automatically with upper limit times, which can be specified as well.
Reference for SMF:
Introducing the Basics of Service Management Facility (SMF) on Oracle Solaris 11 Advanced Administration with the Service Management Facility (SMF) on Oracle Solaris 11