全新安装 14.04 时禁用 Cron 作业

Dav*_*rge 5 apt cron unattended-upgrades

我干净安装了 Ubuntu 14.04,在我的 /etc/cron.daily/ 中看到了 *.disabled 文件:

-rwxr-xr-x 1 root root 15481 Apr 10 09:04 apt.disabled
-rwxr-xr-x 1 root root   314 Feb 17  2014 aptitude.disabled
-rwxr-xr-x 1 root root   355 Jun  4  2013 bsdmainutils.disabled
-rwxr-xr-x 1 root root   384 Mar 23  2014 cracklib-runtime.disabled
-rwxr-xr-x 1 root root   256 May  1 08:29 dpkg.disabled
-rwxr-xr-x 1 root root   372 Jan 22  2014 logrotate
-rwxr-xr-x 1 root root  1261 Apr 10 06:59 man-db.disabled
-rwxr-xr-x 1 root root   435 Jun 20  2013 mlocate.disabled
-rwxr-xr-x 1 root root   249 Feb 16  2014 passwd.disabled
-rwxr-xr-x 1 root root   349 Dec 27  2012 quota.disabled
-rwxr-xr-x 1 root root   322 Apr 11 17:58 upstart.disabled
Run Code Online (Sandbox Code Playgroud)

为什么会这样?我想在我的盒子上使用无人值守升级,但无人值守升级的文档表明我需要编辑 /etc/cron.daily/apt 文件。根据这个链接,我相信该文件应该默认存在:http : //pkgs.org/ubuntu-14.04/ubuntu-main-amd64/apt_1.0.1ubuntu2_amd64.deb.html(而不是apt.disabled?)

小智 3

我们在使用 OpenVZ ( https://openvz.org )的提供商托管的一台 VPS 服务器上遇到了同样的问题。另一台全新安装 14.04 的服务器(托管在其他地方)已启用所有 cron 作业。

我最好的猜测是,提供商试图节省一些系统资源。