diff --git a/src/deployer.sh b/src/deployer.sh index 009e60c..0dcc3c8 100755 --- a/src/deployer.sh +++ b/src/deployer.sh @@ -246,7 +246,7 @@ process_loop() ( main() ( # Parse arguments. - daemon="false" + daemonize="false" keep_open="true" config_file="${DEFAULT_CONFIG_FILE}" errors_file="${DEFAULT_ERRORS_FILE}" @@ -268,7 +268,7 @@ main() ( shift 2 ;; -d | --daemon) - daemon="true" + daemonize="true" shift ;; -e | --errs) @@ -415,7 +415,7 @@ main() ( ) & # Run process loop in background or foreground. - if "${daemon}"; then + if "${daemonize}"; then log_info "Run process loop in background." process_loop & echo "$!" >"${deployer_pid}"