I have smartos machines running a custom application as an smf service (a circonus monitoring agent). On some of these machines the agent errors when starting and gets stuck in a restart loop eventually leading to the machine panicking. For every other smf service I have worked with they will go into "maintenance" mode after restarting a few times but this particular service never seems to. I don't see any way to tweak these settings in the smf manifest and I'm not finding much information about it in the oracle docs. Does anyone know if this is a configurable setting and if so where can I find it?
The SMF manifest defines the following restart method:
<exec_method name='restart' type='method' exec=':kill -HUP' timeout_seconds='10'/>