ansible-role-cerebro/templates/cerebro.service.j2

16 lines
448 B
Text
Raw Normal View History

2019-09-06 13:39:42 +00:00
# {{ ansible_managed }}
[Unit]
Description=The cerebro server manage your elasticsearch cluster
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User={{ cerebro_user }}
Group={{ cerebro_group }}
ExecStart= {{ cerebro_bin_dir }}/release/bin/cerebro -Dconfig.file={{ cerebro_config_dir }}/cerebro.conf -Dlogback.configurationFile={{ cerebro_config_dir }}/logback.xml
Restart=always
[Install]
WantedBy=multi-user.target