[Fix] Replace reserved word deamon with deamonize
This commit is contained in:
parent
e0c2fa89de
commit
8958bea96b
|
@ -246,7 +246,7 @@ process_loop() (
|
||||||
|
|
||||||
main() (
|
main() (
|
||||||
# Parse arguments.
|
# Parse arguments.
|
||||||
daemon="false"
|
daemonize="false"
|
||||||
keep_open="true"
|
keep_open="true"
|
||||||
config_file="${DEFAULT_CONFIG_FILE}"
|
config_file="${DEFAULT_CONFIG_FILE}"
|
||||||
errors_file="${DEFAULT_ERRORS_FILE}"
|
errors_file="${DEFAULT_ERRORS_FILE}"
|
||||||
|
@ -268,7 +268,7 @@ main() (
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
-d | --daemon)
|
-d | --daemon)
|
||||||
daemon="true"
|
daemonize="true"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-e | --errs)
|
-e | --errs)
|
||||||
|
@ -415,7 +415,7 @@ main() (
|
||||||
) &
|
) &
|
||||||
|
|
||||||
# Run process loop in background or foreground.
|
# Run process loop in background or foreground.
|
||||||
if "${daemon}"; then
|
if "${daemonize}"; then
|
||||||
log_info "Run process loop in background."
|
log_info "Run process loop in background."
|
||||||
process_loop &
|
process_loop &
|
||||||
echo "$!" >"${deployer_pid}"
|
echo "$!" >"${deployer_pid}"
|
||||||
|
|
Loading…
Reference in New Issue