Skip to content

Commit

Permalink
fix : filebeat 파일에 들어갈 때 절대 경로 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
java-saeng committed Jul 25, 2023
1 parent 6d16df5 commit 35028bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/.ebextensions/02-set-filebeat.config
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"/tmp/restart_filebeat.sh": {
"mode": "000755",
"content": "#!/bin/bash\n\nPID=$(ps -ef | grep ./filebeat | grep -v grep | awk '{print $2}')\n\nif [[ -n \"$PID\" ]]; then\n echo \"Filebeat PID : $PID\"\n sudo kill -9 $PID\nelse\n echo \"Filebeat is not running.\"\nfi\n\necho \"Restarting Filebeat\"\ncd filebeat-7.14.1-linux-x86_64 && sudo chmod 644 filebeat.yml && nohup ./filebeat -e > filebeat.log 2>&1 &\ndisown\necho \"Filebeat restarted\"\n"
"content": "#!/bin/bash\n\nPID=$(ps -ef | grep ./filebeat | grep -v grep | awk '{print $2}')\n\nif [[ -n \"$PID\" ]]; then\n echo \"Filebeat PID : $PID\"\n sudo kill -9 $PID\nelse\n echo \"Filebeat is not running.\"\nfi\n\necho \"Restarting Filebeat\"\ncd /home/ec2-user/filebeat-7.14.1-linux-x86_64 && sudo chmod 644 filebeat.yml && nohup ./filebeat -e > filebeat.log 2>&1 &\ndisown\necho \"Filebeat restarted\"\n"
}
},
"commands": {
Expand Down

0 comments on commit 35028bf

Please sign in to comment.