Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start crond.service on Ubuntu 16.04

I am programming some schedule task in my Ubuntu 16.04.

But when I try to start the crond.service by

sudo service crond start

I receive the message

crond.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

What's the problem? The tasks was added to the schedule by crontab command and look fine (the command works in the terminal, have the correct tree folder, I just added the day-hours parameters).

like image 278
hildogjr Avatar asked Apr 06 '17 13:04

hildogjr


1 Answers

It's because the service name on 16.04 is cron, not crond. So your command should be:

sudo service cron  start

You can verify on your server by looking in the /etc/init.d folder. All the services are there.

ls -l /etc/init.d
like image 194
Vilmos Avatar answered Sep 24 '22 06:09

Vilmos