我注意到我的任务在错误的时间运行,所以我改变了我的时区。现在我需要重新启动cron守护进程,但是我使用的所有命令都不适合我。他们中的每一个都会导致暂停:
root@localhost:~# systemctl restart cron.service
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to restart cron.service: Connection timed out
root@localhost:~# systemctl status cron.service
Failed to get properties: Connection timed out
我可以在/lib/systemd/system/中看到cron.service文件:
-rw-r--r-- 1 root root 234 Oct 27 2014 cron.service
我正在使用UbuntuServer15.04 x64。
更新:重新启动服务器,现在我无法启动任何系统单元(mysql、nginx等)
发布于 2015-07-29 17:04:56
这是一个已知的错误policykit-1
。
解决方案是运行:
sudo apt-get purge policykit-1
sudo apt-get update
sudo apt-get upgrade
sudo systemctl reboot
这个问题是在我试图安装firewalld
包之后开始的。
https://askubuntu.com/questions/654248
复制相似问题