troglobit / finit

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

restart:always feature or changing restart: count to an int #279

Closed hongkongkiwi closed 2 years ago

hongkongkiwi commented 2 years ago

For the next finit release, I would like to request restart:always be implemented or something similar. Or alternatively could we increase the restart: to an int (2147483647) that would also solve it.

There is a "respawn" option as mentioned in #242 , but this bypasses the restart mechanism so there's no way to set a time between restarts which for my case is pretty important.

Having a task instantly restart on crash is not desirable for low cpu systems.

troglobit commented 2 years ago

Yes, agreed. A restart:always sounds great, where I'll probably implement always as -1.