text /etc/systemd/system/consul.service

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text /etc/systemd/system/consul.service相关的知识,希望对你有一定的参考价值。

[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

以上是关于text /etc/systemd/system/consul.service的主要内容,如果未能解决你的问题,请参考以下文章

Ubutntu安装docker启动报Removed /etc/systemd/system/docker.service.

cent 7 安装VNC

[svc]centos7的服务治理-systemd

Ubuntu 18.04 rc.local systemd设置

ubuntu18创建rc.local

ubuntu18创建rc.local