Skip to content

Instantly share code, notes, and snippets.

@yunano
Created May 1, 2015 15:52
Show Gist options
  • Select an option

  • Save yunano/c27eb679a29ab70178ca to your computer and use it in GitHub Desktop.

Select an option

Save yunano/c27eb679a29ab70178ca to your computer and use it in GitHub Desktop.

Revisions

  1. yunano created this gist May 1, 2015.
    15 changes: 15 additions & 0 deletions consul.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    [Unit]
    Description=consul agent
    Requires=network-online.target
    After=network-online.target

    [Service]
    EnvironmentFile=-/etc/sysconfig/consul
    Environment=GOMAXPROCS=2
    Restart=on-failure
    ExecStart=/usr/local/sbin/consul agent $OPTIONS -config-dir=/etc/consul.d
    ExecReload=/bin/kill -HUP $MAINPID
    KillSignal=SIGINT

    [Install]
    WantedBy=multi-user.target