troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
633 stars 63 forks source link

service.c: add more parameters when starting services #208

Closed liuming50 closed 3 years ago

liuming50 commented 3 years ago

It would be good if we can control the services more specifically with the following parameters like:

restart:N - how many times shall the service to be restarted on failures (<10), the default max is 10. restart_tmo - the timeout of the restarting. norestart - dont restart on failures. oncrash - once all retrying also fail, how to deal with it, rebooting or ignoring the failures.

Signed-off-by: Robert Andersson robert.m.andersson@atlascopco.com Signed-off-by: Ming Liu liu.ming50@gmail.com

troglobit commented 3 years ago

Awesome, we've been talking about adding this ourselves, very cool! <3

troglobit commented 3 years ago

For future reference, it's always appreciated when contributors also add some basic documentation ;-)