Skip to content

Finer control over restarting behaviour? #306

Description

@hongkongkiwi

Is it possible to add a couple of variables for me so I can change the restart behaviour when a service crashes? In my case, it's a modem dialer script which just exits when connection drops.

e.g. I want to attempt to restart 20 times at 10 seconds between each try, THEN 30 seconds between each try forever.

I was thinking to solve it maybe we could add two variables: restart_early_tries and restart_early_sec which allows fine tuning of the behaviour (by default I think it's restart_early_tries:5 restart_early_sec:2 according to the docs).

So that way I could specify the following on a service

restart_early_tries:20 restart_early_sec:10 restart_sec:30 restart:always

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions