daemonize

Run a command as a UNIX daemon in the background

brewmacoslinux
Try with needOr install directly
Source

About

Run a command as a UNIX daemon

Commands

daemonize

Examples

Run a simple command as a daemon$ daemonize -p /tmp/my_app.pid my_application
Daemonize a script with output redirection to log file$ daemonize -o /var/log/app.log -e /var/log/app.err my_script.sh
Run a daemon with specific user and working directory$ daemonize -u myuser -c /home/myuser my_command