-
-
Save WangWenchao/b76f3e3938483ac99e72eb373f8e5527 to your computer and use it in GitHub Desktop.
Revisions
-
Manc revised this gist
Jan 9, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Group=consul PIDFile=/run/consul/consul.pid Restart=on-failure Environment=GOMAXPROCS=2 ExecStartPre=[ -f "/run/consul/consul.pid" ] && /usr/bin/rm -f /run/consul/consul.pid ExecStartPre=/usr/local/bin/consul configtest -config-dir=/etc/consul.d ExecStart=/usr/local/bin/consul agent $OPTIONS -pid-file=/run/consul/consul.pid -config-dir=/etc/consul.d ExecReload=/bin/kill -s HUP $MAINPID -
Manc revised this gist
Jan 9, 2016 . 1 changed file with 11 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,20 @@ [Unit] Description=Consul service discovery agent Requires=network-online.target After=network.target [Service] User=consul Group=consul PIDFile=/run/consul/consul.pid Restart=on-failure Environment=GOMAXPROCS=2 ExecStartPre=/usr/bin/rm -f /run/consul/consul.pid ExecStartPre=/usr/local/bin/consul configtest -config-dir=/etc/consul.d ExecStart=/usr/local/bin/consul agent $OPTIONS -pid-file=/run/consul/consul.pid -config-dir=/etc/consul.d ExecReload=/bin/kill -s HUP $MAINPID KillSignal=SIGINT TimeoutStopSec=5 [Install] WantedBy=multi-user.target -
yunano created this gist
May 1, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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