formula-consul/consul/files/consul.service
2017-11-28 12:16:19 +02:00

15 lines
329 B
Desktop File

[Unit]
Description=consul
Wants=network.target
After=network.target
[Service]
Environment="GOMAXPROCS=2" "PATH=/usr/local/bin:/usr/bin:/bin"
ExecStart=/usr/local/bin/consul agent -config-dir=/etc/consul.d
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=TERM
User={{ user }}
Group={{ group }}
[Install]
WantedBy=multi-user.target