linux - Run bash script as daemon - Stack Overflow https://stackoverflow.com/questions/19233529/run-bash-script-as-daemon

 

# By default Redis does not run as a daemon. Use 'yes' if you need it.

# Note that Redis will write a pid file in /var/run/redis.pid when daemonized.

daemonize no