启用的systemd单元无法在启动时启动
我有一个systemd-unit我的系统已启用的。问题是,重新启动后它不会重新启动。它取决于两个都按预期启动的其他服务。 该服务是已知的,已启用的并且已失效: [centos@ansible-kube-4 ~]$ sudo systemctl status flanneld flanneld.service - Flanneld overlay address etcd agent Loaded: loaded (/usr/lib/systemd/system/flanneld.service; enabled) Active: inactive (dead) 单位文件: [centos@ansible-kube-4 ~]$ cat /usr/lib/systemd/system/flanneld.service [Unit] Description=Flanneld overlay address etcd agent After=network.target After=etcd.service [Service] Type=notify Restart=always RestartSec=3 EnvironmentFile=/etc/sysconfig/flanneld EnvironmentFile=-/etc/sysconfig/docker-network ExecStart=/usr/bin/flanneld -etcd-endpoints=${FLANNEL_ETCD} -etcd-prefix=${FLANNEL_ETCD_KEY} $FLANNEL_OPTIONS ExecStartPost=/usr/libexec/flannel/mk-docker-opts.sh -k DOCKER_NETWORK_OPTIONS -d /run/flannel/docker …