This program is one that is supposed to run on demand and finishes in less than a second so I cannot increase startsecs. It is, however, failing on start and returning an exit code of 255. I see this in the supervisor log:
2014-03-20 12:05:12,836 INFO exited: myprog (exit status 255; not expected)
Even though the program dies in an unexpected way, supervisor tells my event listeners that the program simply EXITED rather than FATAL. If I set "autorestart = unexpected" supervisor correctly determines that the program died in an unexpected way and tries to restart it but because it never goes into a FATAL state it just sits there and tries to start over and over and over and over again regardless of the setting for "startretries". This is not ideal.
I'm using supervisor 3.0 and have not incorporated any of the changes since its release. If these are fixed in later versions I'm happy to upgrade.
Is there anything I'm doing wrong with my configs? Or anything I can do to mitigate these problems?