crawshaw.io/littleboss (go): Package littleboss creates self-supervising Go binaries.  A self-supervising binary starts itself as a child process. The parent process becomes a supervisor that is responsible for monitoring, managing I/O, restarting, and reloading the child.  Make a program use littleboss by modifying the main function:  By default the supervisor is bypassed and the program executes directly. A flag, -littleboss, is added to the binary. It can be used to start a supervised binary and manage it:  Supervisor options are baked into the binary. The Littleboss struct type contains fields that can be set before calling the Run method to configure the supervisor.
Keywords: golang|supervisor