Endless retries of service? #242
-
I see in the documentation that I can use retries:0 to disable retrying and retries:NUM, but in my application I have a need for unlimited retries and it never goes to a "crashed" state. Can I request a small addition to add retries:-1 to disable a service being marked as crashed? Also, whats the maximum number that can be specified for this? (I didn't see a max listed in docs). Example of this is an LTE dialer which exits the script if it fails. So I don't want it to ever stop retrying to connect to LTE. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think you mean You can use secret option |
Beta Was this translation helpful? Give feedback.
I think you mean
restart:NUM
, right? Its MAX value is anunsigned char
, so 255.You can use secret option
respawn
as I've used in thestart-kill-service.sh
test case. It's been undocumented for a reason, but maybe it's time for it to be opened up to the public since there are valid use-cases for it.