Merge pull request #528 from Fra-nk/Systemd_Mount_Requirements
Use systemd's RequiresMountsFor
This commit is contained in:
commit
e4ce1b2c57
1 changed files with 2 additions and 0 deletions
|
|
@ -3,6 +3,8 @@ Description=Elasticsearch-{{es_instance_name}}
|
||||||
Documentation=http://www.elastic.co
|
Documentation=http://www.elastic.co
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
After=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]
|
[Service]
|
||||||
Environment=ES_HOME={{es_home}}
|
Environment=ES_HOME={{es_home}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue