17 lines
300 B

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

Powered by TurnKey Linux.