Commit 39b76c3c authored by lixiaocui1's avatar lixiaocui1 Committed by YunhuiChen
Browse files

ansible: add time to etcd log file

No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -22,5 +22,5 @@
service_port: "{{ etcd_listen_client_port }}"
process_name: etcd
start_cmd: >
nohup {{ install_etcd_dir }}/etcd --config-file {{ etcd_config_path }} > etcd-console.log 2>&1 &
nohup {{ install_etcd_dir }}/etcd --config-file {{ etcd_config_path }} > etcd-console-$(date -d "today" +"%Y%m%d_%H%M%S").log 2>&1 &
include_tasks: common_tasks/restart_service.yml
......@@ -21,5 +21,5 @@
daemon_script: ./etcd-daemon.sh
service_port: "{{ etcd_listen_client_port }}"
start_cmd: >
nohup {{ install_etcd_dir }}/etcd --config-file {{ etcd_config_path }} > etcd-console.log 2>&1 &
nohup {{ install_etcd_dir }}/etcd --config-file {{ etcd_config_path }} > etcd-console-$(date -d "today" +"%Y%m%d_%H%M%S").log 2>&1 &
include_tasks: common_tasks/start_service.yml
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment