How to Fix “crond: unrecognized service” on Linux CentOS 6.3

I have a CentOS 6.3 which was without cron package installed. When I tried running crond service it says “unrecognized service”. Besides, when try to edit the crontab, it getting “crontab: command not found” warning. In minimum CentOS 6.3 installation, crond (vixie-cron) was not installed. The following is the common errors or warnings returned when crond service is not installed.

Examples :

[root@centos63 ~]# service crond status
crond: unrecognized service
[root@centos63 ~]# crontab -e
-bash: crontab: command not found

Solution :
In order to install crond service, you need to run “yum install vixie-cron” as below :

[root@centos63 ~]# yum install vixie-cron -y

Examples :

[root@centos63 ~]# yum install vixie-cron -y
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: ossm.utm.my
 * extras: ossm.utm.my
 * rpmforge: mirror.oscc.org.my
 * updates: ossm.utm.my
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package cronie.i686 0:1.4.4-7.el6 will be installed
--> Processing Dependency: dailyjobs for package: cronie-1.4.4-7.el6.i686
--> Processing Dependency: /usr/sbin/sendmail for package: cronie-1.4.4-7.el6.i686
--> Running transaction check
---> Package cronie-anacron.i686 0:1.4.4-7.el6 will be installed
--> Processing Dependency: crontabs for package: cronie-anacron-1.4.4-7.el6.i686
---> Package postfix.i686 2:2.6.6-2.2.el6_1 will be installed
--> Processing Dependency: cyrus-sasl >= 2.1.10 for package: 2:postfix-2.6.6-2.2.el6_1.i686
--> Running transaction check
---> Package crontabs.noarch 0:1.10-33.el6 will be installed
---> Package cyrus-sasl.i686 0:2.1.23-13.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                    Arch               Version                       Repository        Size
====================================================================================================
Installing:
 cronie                     i686               1.4.4-7.el6                   base              70 k
Installing for dependencies:
 cronie-anacron             i686               1.4.4-7.el6                   base              29 k
 crontabs                   noarch             1.10-33.el6                   base              10 k
 cyrus-sasl                 i686               2.1.23-13.el6                 base              77 k
 postfix                    i686               2:2.6.6-2.2.el6_1             base             2.0 M

Transaction Summary
====================================================================================================
Install       5 Package(s)

Total download size: 2.2 M
Installed size: 9.6 M
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 2.2 M
(1/5): cronie-1.4.4-7.el6.i686.rpm                                           |  70 kB     00:00
(2/5): cronie-anacron-1.4.4-7.el6.i686.rpm                                   |  29 kB     00:00
(3/5): crontabs-1.10-33.el6.noarch.rpm                                       |  10 kB     00:00
(4/5): cyrus-sasl-2.1.23-13.el6.i686.rpm                                     |  77 kB     00:00
(5/5): postfix-2.6.6-2.2.el6_1.i686.rpm                                      | 2.0 MB     00:22
----------------------------------------------------------------------------------------------------
Total                                                                93 kB/s | 2.2 MB     00:24
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : cyrus-sasl-2.1.23-13.el6.i686                                                    1/5
  Installing : 2:postfix-2.6.6-2.2.el6_1.i686                                                   2/5
  Installing : crontabs-1.10-33.el6.noarch                                                      3/5
  Installing : cronie-anacron-1.4.4-7.el6.i686                                                  4/5
  Installing : cronie-1.4.4-7.el6.i686                                                          5/5
  Verifying  : 2:postfix-2.6.6-2.2.el6_1.i686                                                   1/5
  Verifying  : crontabs-1.10-33.el6.noarch                                                      2/5
  Verifying  : cyrus-sasl-2.1.23-13.el6.i686                                                    3/5
  Verifying  : cronie-1.4.4-7.el6.i686                                                          4/5
  Verifying  : cronie-anacron-1.4.4-7.el6.i686                                                  5/5

Installed:
  cronie.i686 0:1.4.4-7.el6

Dependency Installed:
  cronie-anacron.i686 0:1.4.4-7.el6  crontabs.noarch 0:1.10-33.el6  cyrus-sasl.i686 0:2.1.23-13.el6
  postfix.i686 2:2.6.6-2.2.el6_1

Complete!
[root@centos63 ~]# which crond
/usr/sbin/crond

How to Reset the Directory Manager Password on RHEL 7 / CentOS 7
How to Reset the Directory Manager Password on RHEL 7 / CentOS 7

It is best practice to remember passwords, but because too many passwords, sometimes we forget. We are not encouraged to write the password on any paper or share the password...

How to Find Big Files Size on Linux RHEL/CentOS
How to Find Big Files Size on Linux RHEL/CentOS

As the linux administrator, sometimes we have to identify which files are most take much space in the linux server resulting in low free space. Low disk space can also...

Why Linux users should worry about malware and what they can do about it
Why Linux users should worry about malware and what they can do about it

Don’t drop your guard just because you’re running Linux. Preventing the spread of malware and/or dealing with the consequences of infection are a fact of life when using computers. If...

How to Reset Forgotten Root Password on Linux RHEL 7/CentOS 7
How to Reset Forgotten Root Password on Linux RHEL 7/CentOS 7

This article will explain the steps to reset a lost root password or to reset forgotten root password on Linux RHEL 7 or CentOS 7. Basically, the steps will adding...

How to Update CentOS or Upgrade CentOS to the Latest Version
How to Update CentOS or Upgrade CentOS to the Latest Version

Recently, the latest version of CentOS 7.3 was released. All users of CentOS 7.0, 7.1 and 7.2 can upgrade their system to the most recent. This quick guide will explain...

How to Change your WordPress Username, Nickname and Display Name in MySQL
How to Change your WordPress Username, Nickname and Display Name in MySQL

After you create an account log in WordPress, you may want to change your WordPress username, as appropriate or due to security reason. However, you can not do this from...

How to Enable SSH Root Login on Ubuntu 16.04
How to Enable SSH Root Login on Ubuntu 16.04

As what we wrote in the previous article on how to allow SSH root on Ubuntu 14.04, after installing a fresh new copy of Ubuntu 16.04 LTS, we find that...

How to Change UUID of Linux Partition on CentOS 7
How to Change UUID of Linux Partition on CentOS 7

UUID (Universally Unique IDentifier) should be unique and it is used to identify storage devices on a linux system. If you cloned a virtual machine from vCenter, the metadata containing...

Leave a Reply

Your email address will not be published. Required fields are marked *