ochinchina / supervisord

a go-lang supervisor implementation
MIT License
4.03k stars 572 forks source link

Feature suggestion: an option to execute a binary (or a script) before starting the main binary being monitored, and an option to execute one after start of monitored binary #382

Open LindaFerum opened 1 year ago

LindaFerum commented 1 year ago

Basically what it says in the can. Roughly equivalent to systemd's (sigh) ExecStartPre and ExecStartPost

As a fun little addition maybe make option for "execStartEnd" which is to be run when monitored service/binary has stopped executing (may come in handy for weird misbehaved "shipped by vendor" binaries or something equally gnarly)