ansible-role-cerebro/templates/cerebro.service.j2
2019-09-06 16:30:56 +02:00

15 lines
448 B
Django/Jinja

# {{ 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