Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #528 from Fra-nk/Systemd_Mount_Requirements
Browse files Browse the repository at this point in the history
Use systemd's RequiresMountsFor
  • Loading branch information
Crazybus authored Jan 24, 2019
2 parents 9823a3f + fd8ea77 commit e4ce1b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/systemd/elasticsearch.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Description=Elasticsearch-{{es_instance_name}}
Documentation=http://www.elastic.co
Wants=network-online.target
After=network-online.target
{# Directive 'WorkingDirectory' creates an implicit dependecy for {{es_home}}, so it can be omitted here #}
RequiresMountsFor={{ data_dirs | array_to_str(separator=' ') }} {{log_dir}} {{pid_dir}} {{conf_dir}}

[Service]
Environment=ES_HOME={{es_home}}
Expand Down

0 comments on commit e4ce1b2

Please sign in to comment.