scottslowe-learning-tools/ovn-docker-ansible/consul-server.service
Scott S. Lowe 72a72560fb Add systemd compatibility
Remove old Upstart job file. Add systemd unit file. Edit Consul configuration file template to address systemd compatibility. Modify Ansible playbook to address systemd compatibility. Add missing OVN setup script. Remove unneeded files.

Signed-off-by: Scott S. Lowe <scott.lowe@scottlowe.org>
2016-12-06 03:42:05 -07:00

17 lines
349 B
Desktop File

[Unit]
Description=Consul Server
Requires=network-online.target
After=network-online.target
[Service]
User=consul
Group=consul
Environment="GOMAXPROCS=2"
Restart=on-failure
RestartSec=1
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGINT
ExecStart=/usr/local/bin/consul agent -config-dir=/etc/consul.d/server
[Install]
WantedBy=multi-user.target