Skip to content

Commit

Permalink
Make curator dependent on elastic search
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Hamza Zaib committed May 17, 2018
1 parent 7685275 commit ad0a17b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions curator/curator.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=Curator service, for deleting indices of elastic search older than 6 months
After=docker.service consul-agent.service
Requires=docker.service consul-agent.service
After=docker.service consul-agent.service elasticsearch.service
Requires=docker.service consul-agent.service elasticsearch.service

[Service]
ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment IPV4=$(curl http://169.254.169.254/latest/meta-data/local-ipv4)"
Expand Down

0 comments on commit ad0a17b

Please sign in to comment.