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

Use systemd's RequiresMountsFor #528

Merged
merged 1 commit into from
Jan 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use systemd's RequiresMountsFor
User might be interested in separating data
in ephemeral and persistent state, especially
in cloud environments, e.g. data_dir on
another disk.
  • Loading branch information
Frank Fischer authored and Frank Fischer committed Jan 17, 2019
commit fd8ea77fa483e889e580f3ecb6e90f7168d6f0fb
2 changes: 2 additions & 0 deletions templates/systemd/elasticsearch.j2
Original file line number Diff line number Diff line change
@@ -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}}