daemontools

Manage and supervise UNIX services with automatic restart and logging.

brewmacoslinux
Try with needOr install directly
Source

About

Collection of tools for managing UNIX services

Commands

svcsvstatsupervisesvscansvoksvscanbootmultilogtai64ntai64nlocalfghackpgrphackreadproctitlesetuidgidchpstenvuidgid

Examples

start a service and keep it running automatically$ svc -u /service/myservice
stop a running service gracefully$ svc -d /service/myservice
check if a service is currently running$ svstat /service/myservice
monitor and rotate service logs with timestamps$ multilog t ./main /var/log/myservice
supervise multiple services in a directory$ svscan /service