I'm trying to use upstart to restart OEM agents when they fail. I have been able to use systemd on oel7 to do this successfully. But not in oel6.
I have created a conf file in /etc/init with respawn in is and a path to a script which I created to start the agent. After the server was bounced I am able to see my new service by doing initctl list. But the job status is stop/waiting.
If I try to start the service with initctl I get the message:
initctl: Rejected send message, 1 matched rules; type="method_call", sender=":1.29" (uid=264 pid=20109 comm="initctl) interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init))
If I try to start the service with the service command I get:
oem-agent: unrecognized service
Clearly I've done something wrong. What can I do to get this working?