How can I install the crond service on an ubuntu server 16.4?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
2
down vote
favorite
I am trying to add a cron job to backup a database on my server (instance EC2 t2 micro, ubuntu 16.4 server). The script works, and the cron line should be ok:
* * * * * /home/ubuntu/backup.sh
Yet, it was not executed. So I did:
service crond status
and got:
â crond.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
when I do :
service crond start
I get:
Failed to start crond.service: Access denied
See system logs and 'systemctl status crond.service' for details.
Being very unskilled with bash things, and considering it might be related to the way Amazon EC2 ubuntu is set up, here I am. Do you know what I could do to get the crond service back up?
EDIT: well, so the service name was cron
. And it is executed every minute as it should. I guess there is an issue with my script.
server bash cron amazon-ec2
add a comment |Â
up vote
2
down vote
favorite
I am trying to add a cron job to backup a database on my server (instance EC2 t2 micro, ubuntu 16.4 server). The script works, and the cron line should be ok:
* * * * * /home/ubuntu/backup.sh
Yet, it was not executed. So I did:
service crond status
and got:
â crond.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
when I do :
service crond start
I get:
Failed to start crond.service: Access denied
See system logs and 'systemctl status crond.service' for details.
Being very unskilled with bash things, and considering it might be related to the way Amazon EC2 ubuntu is set up, here I am. Do you know what I could do to get the crond service back up?
EDIT: well, so the service name was cron
. And it is executed every minute as it should. I guess there is an issue with my script.
server bash cron amazon-ec2
It should be cron not crond. What is the output ofservice cron status
â stumblebee
Mar 29 at 6:18
1
My bad. It is executed every minute as it should.
â Billybobbonnet
Mar 29 at 6:22
1
@stumblebee you should post a quick answer so that it ends up with some kind of closure :-). Thanks by the way
â Billybobbonnet
Mar 29 at 6:25
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I am trying to add a cron job to backup a database on my server (instance EC2 t2 micro, ubuntu 16.4 server). The script works, and the cron line should be ok:
* * * * * /home/ubuntu/backup.sh
Yet, it was not executed. So I did:
service crond status
and got:
â crond.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
when I do :
service crond start
I get:
Failed to start crond.service: Access denied
See system logs and 'systemctl status crond.service' for details.
Being very unskilled with bash things, and considering it might be related to the way Amazon EC2 ubuntu is set up, here I am. Do you know what I could do to get the crond service back up?
EDIT: well, so the service name was cron
. And it is executed every minute as it should. I guess there is an issue with my script.
server bash cron amazon-ec2
I am trying to add a cron job to backup a database on my server (instance EC2 t2 micro, ubuntu 16.4 server). The script works, and the cron line should be ok:
* * * * * /home/ubuntu/backup.sh
Yet, it was not executed. So I did:
service crond status
and got:
â crond.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
when I do :
service crond start
I get:
Failed to start crond.service: Access denied
See system logs and 'systemctl status crond.service' for details.
Being very unskilled with bash things, and considering it might be related to the way Amazon EC2 ubuntu is set up, here I am. Do you know what I could do to get the crond service back up?
EDIT: well, so the service name was cron
. And it is executed every minute as it should. I guess there is an issue with my script.
server bash cron amazon-ec2
server bash cron amazon-ec2
edited Mar 29 at 6:24
asked Mar 29 at 6:13
![](https://i.stack.imgur.com/ibFj8.jpg?s=32&g=1)
![](https://i.stack.imgur.com/ibFj8.jpg?s=32&g=1)
Billybobbonnet
1404
1404
It should be cron not crond. What is the output ofservice cron status
â stumblebee
Mar 29 at 6:18
1
My bad. It is executed every minute as it should.
â Billybobbonnet
Mar 29 at 6:22
1
@stumblebee you should post a quick answer so that it ends up with some kind of closure :-). Thanks by the way
â Billybobbonnet
Mar 29 at 6:25
add a comment |Â
It should be cron not crond. What is the output ofservice cron status
â stumblebee
Mar 29 at 6:18
1
My bad. It is executed every minute as it should.
â Billybobbonnet
Mar 29 at 6:22
1
@stumblebee you should post a quick answer so that it ends up with some kind of closure :-). Thanks by the way
â Billybobbonnet
Mar 29 at 6:25
It should be cron not crond. What is the output of
service cron status
â stumblebee
Mar 29 at 6:18
It should be cron not crond. What is the output of
service cron status
â stumblebee
Mar 29 at 6:18
1
1
My bad. It is executed every minute as it should.
â Billybobbonnet
Mar 29 at 6:22
My bad. It is executed every minute as it should.
â Billybobbonnet
Mar 29 at 6:22
1
1
@stumblebee you should post a quick answer so that it ends up with some kind of closure :-). Thanks by the way
â Billybobbonnet
Mar 29 at 6:25
@stumblebee you should post a quick answer so that it ends up with some kind of closure :-). Thanks by the way
â Billybobbonnet
Mar 29 at 6:25
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
To check the status of cron run:
service cron status
Instead of "crond"
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
To check the status of cron run:
service cron status
Instead of "crond"
add a comment |Â
up vote
2
down vote
accepted
To check the status of cron run:
service cron status
Instead of "crond"
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
To check the status of cron run:
service cron status
Instead of "crond"
To check the status of cron run:
service cron status
Instead of "crond"
answered Mar 29 at 6:32
![](https://i.stack.imgur.com/y7JEo.jpg?s=32&g=1)
![](https://i.stack.imgur.com/y7JEo.jpg?s=32&g=1)
stumblebee
2,3083922
2,3083922
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1020162%2fhow-can-i-install-the-crond-service-on-an-ubuntu-server-16-4%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
It should be cron not crond. What is the output of
service cron status
â stumblebee
Mar 29 at 6:18
1
My bad. It is executed every minute as it should.
â Billybobbonnet
Mar 29 at 6:22
1
@stumblebee you should post a quick answer so that it ends up with some kind of closure :-). Thanks by the way
â Billybobbonnet
Mar 29 at 6:25