Friday, May 6, 2016

Consul Server and Consul Agent Systemd Units

Consul Server and Consul Agent Systemd Units for RHEL/CentOS 7


Consul Server ->/etc/systemd/system/consul-server.service

[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/server
ExecReload=/bin/kill -9 $MAINPID
KillSignal=SIGINT
Restart=on-failure
RestartSec=1

[Install]

WantedBy=default.target


Consul Agent -> /etc/systemd/system/consul-client.service

[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/client
ExecReload=/bin/kill -9 $MAINPID
KillSignal=SIGINT
Restart=on-failure


[Install]
WantedBy=multi-user.target

5 comments:

  1. This is really a nice and informative, containing all information and also has a great impact on the new technology. Thanks for sharing it, Maharashtra Ration Card Application

    ReplyDelete
  2. With no league to compete in, Tech would found the Metro Conference, for all its intercollegiate sports except football.port checker

    ReplyDelete
  3. Most cloud solutions on the market are extremely slow and give little to no options when it comes to throttling the bandwidth.https://iturbu.com

    ReplyDelete