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. Cool stuff you have got and you keep update all of us.
    FREE learning management system

    ReplyDelete
  2. 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
  3. With no league to compete in, Tech would found the Metro Conference, for all its intercollegiate sports except football.port checker

    ReplyDelete
  4. 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
  5. In truth, I like to explain the funding philosophy of SVN Capital as a 빅카지노 value-oriented fund with a heavy "quality" overlay. With its dominant market share and vital growth potential, Evolution is trading at a very enticing valuation. Open-air slots area specifically reserved for patrons who smoke. Versatile entertainment venue that can host every little thing from comedians to conferences, stay music to Super Bowl bashes.

    ReplyDelete