Some program has --daemonize option to run itself in background, e.g. php-fpm. I was wondering is there any difference between using --daemonize or just use the old & way to run the process in background?
I would assume there is otherwise why bother to provide --daemonize, why not just run it with &
But I can't find information about that. For example I test php-fpm --daemonize vs php-fpm & and do some limited test. I don't see the difference.
------ update ------
I hit this problem again when trying Dockerfile CMD shell vs exec form.
So maybe it is worth to add a SO discussion here https://stackoverflow.com/questions/42805750/dockerfile-cmd-shell-versus-exec-form