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

Comments

Leave a Reply

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