0

我有一个 kubuntu 桌面盒子。这个盒子布置得很整齐,适合我的所有需求。

但是:以前的主人为了节省电力,每天 23:30(晚上 11 点 30 分钟)关闭盒子。

系统日志告诉我:

23:30:02 kubuntu-871263 CRON[17372]: (root) CMD (^I/sbin/poweroff)

因此我调查了

crontab -l

17 * * * * root cd / && run-parts --report /etc/cron.hourly 25 22 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 22 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 22 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )

对于 root 和所有用户。

我找不到 poweroff 命令的来源。23:30 的命令源自的任何想法。

PS我不能问以前的主人。

4

1 回答 1

2

我在 /etc 中找到了一个 crontab 文件,它是系统范围的 crontab (/etc/crontab) 。该文件包含 23:30 的 poweroff 命令。

于 2014-02-26T12:39:18.673 回答