[Fix] Replace reserved word deamon with deamonize
This commit is contained in:
parent
e0c2fa89de
commit
8958bea96b
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue