在Debian Jessie上,systemd看起来工作得很好:
$ sudo systemctl enable shibd.service Synchronizing state for shibd.service with sysvinit using update-rc.d... Executing /usr/sbin/update-rc.d shibd defaults Executing /usr/sbin/update-rc.d shibd enable
“开始”,“停止”和“状态”命令都可以工作。
但is-enabled命令失败:
$ sudo systemctl is-enabled shibd.service Failed to get unit file state for shibd.service: No such file or directory
另一方面,用sssd,ssh也是'is-enabled'的作品:
$ sudo systemctl is-enabled sssd.service enabled
我想解决这个问题,因为木偶试图在每次运行中重新启用服务。