genrc - News: Version 1.1
Version 1.1
Item posted by Sergey Poznyakoff <gray> on Sun May 20 08:52:52 2018.
Version 1.1 is available for download.
This version implements the restart mode.
The restart mode is a special feature of sentinel mode, controlled by the new options --restart-on-exit and --restart-on-signal. In this mode genrc will restart the subsidiary program if it exits with a predefined status code or terminates on a predefined signal. Use this feature to ensure the service provided by the program won't get terminated because of hitting a bug or encountering an unforeseen external condition.
For example:
genrc --command=COMMAND \ --sentinel \ --restart-on-exit='!0' --restart-on-signal='!TERM,QUIT' start
This will ensure that COMMAND will be restarted immediately after it terminates, unless it exits with the status 0 or terminates on SIGTERM or SIGQUIT.
Comments:
No messages in Version 1.1