mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 03:15:42 +03:00
The `-recursor` flag in the Consul service unit files is specific to a given cloud, but we already have cloud-specific configuration files. Consolidate all the cloud-specific items into the config.
17 lines
347 B
Desktop File
17 lines
347 B
Desktop File
[Unit]
|
|
Description=Consul Agent
|
|
Requires=network-online.target
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Restart=on-failure
|
|
Environment=CONSUL_ALLOW_PRIVILEGED_PORTS=true
|
|
ExecStart=/usr/local/bin/consul agent -config-dir="/etc/consul.d"
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
KillSignal=SIGTERM
|
|
User=root
|
|
Group=root
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|