Sysemd配置文件有两个主要注意点
发布时间
阅读量:
阅读量
这篇文章做个笔记:在书写Systemd服务配置文件时需要注意的两个关键问题在于路径命名法和变量的应用。
问题示例
在系统设置中flanneld的服务文件某一行存在两个问题,在使用systemd时该服务文件无法正常运行
[root@host131 shell]# cat /etc/flannel/flannel.conf
FLANNELD_OPTS="-etcd-cafile=/etc/ssl/ca/ca.pem \
-etcd-certfile=/etc/ssl/flannel/flanneld.pem \
-etcd-keyfile=/etc/ssl/flannel/flanneld-key.pem \
-etcd-endpoints=https://192.168.163.131:2379 \
-etcd-prefix=/coreos.com/network \
-iface=enp0s3 \
-ip-masq"
[root@host131 shell]# cat /usr/lib/systemd/system/flanneld.service
[Unit]
Description=Flanneld Service
Documentat
全部评论 (0)
还没有任何评论哟~
