How can I install the crond service on an ubuntu server 16.4?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








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.










share|improve this question























  • 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














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.










share|improve this question























  • 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












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.










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 29 at 6:24

























asked Mar 29 at 6:13









Billybobbonnet

1404




1404











  • 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
















  • 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















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










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"






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    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






























    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"






    share|improve this answer
























      up vote
      2
      down vote



      accepted










      To check the status of cron run:



      service cron status



      Instead of "crond"






      share|improve this answer






















        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"






        share|improve this answer












        To check the status of cron run:



        service cron status



        Instead of "crond"







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 29 at 6:32









        stumblebee

        2,3083922




        2,3083922



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491