ralphlange / procServ

Wrapper to start arbitrary interactive commands in the background, with telnet or Unix domain socket access to stdin/stdout
GNU General Public License v3.0
23 stars 23 forks source link

run the child only once and exit the server #22

Closed hinxx closed 5 years ago

hinxx commented 6 years ago

First attempt to add an option (--once; -o) that makes the server exit if the child died (without any user interference).

Useful when system wide service manager (i.e. systemd) is used to start the procServ (and IOC) and one needs procServ to terminate if IOC was terminated. Service manager would then restart the service. Before or after the launch of procServ user is allowed to execute arbitrary tools.