Managing cron jobs across multiple servers












2















We are facing a problem with managing cron jobs over multiple servers with dependencies.



I hope there is an opensource central management project that I can be used to handle that and report the status of each job.



I found a project called chronos that runs on a top of mesos, but is there any alternative?










share|improve this question
















bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Please see THIS PAGE for an extensive list of job schedulers, open source or otherwise. Also there was a discussion about an open source job scheduler on Linux magazine a while back. You can find it here

    – MelBurslan
    Apr 20 '16 at 15:55
















2















We are facing a problem with managing cron jobs over multiple servers with dependencies.



I hope there is an opensource central management project that I can be used to handle that and report the status of each job.



I found a project called chronos that runs on a top of mesos, but is there any alternative?










share|improve this question
















bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Please see THIS PAGE for an extensive list of job schedulers, open source or otherwise. Also there was a discussion about an open source job scheduler on Linux magazine a while back. You can find it here

    – MelBurslan
    Apr 20 '16 at 15:55














2












2








2








We are facing a problem with managing cron jobs over multiple servers with dependencies.



I hope there is an opensource central management project that I can be used to handle that and report the status of each job.



I found a project called chronos that runs on a top of mesos, but is there any alternative?










share|improve this question
















We are facing a problem with managing cron jobs over multiple servers with dependencies.



I hope there is an opensource central management project that I can be used to handle that and report the status of each job.



I found a project called chronos that runs on a top of mesos, but is there any alternative?







cron administration






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 20 '16 at 13:07









Jeff Schaller

39.6k1054126




39.6k1054126










asked Apr 20 '16 at 13:02









Osama JaberOsama Jaber

162




162





bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Please see THIS PAGE for an extensive list of job schedulers, open source or otherwise. Also there was a discussion about an open source job scheduler on Linux magazine a while back. You can find it here

    – MelBurslan
    Apr 20 '16 at 15:55



















  • Please see THIS PAGE for an extensive list of job schedulers, open source or otherwise. Also there was a discussion about an open source job scheduler on Linux magazine a while back. You can find it here

    – MelBurslan
    Apr 20 '16 at 15:55

















Please see THIS PAGE for an extensive list of job schedulers, open source or otherwise. Also there was a discussion about an open source job scheduler on Linux magazine a while back. You can find it here

– MelBurslan
Apr 20 '16 at 15:55





Please see THIS PAGE for an extensive list of job schedulers, open source or otherwise. Also there was a discussion about an open source job scheduler on Linux magazine a while back. You can find it here

– MelBurslan
Apr 20 '16 at 15:55










1 Answer
1






active

oldest

votes


















0














You can use ansible's cron module.



Here is examples for some cron jobs:



# Ensure a job that runs at 2 and 5 exists.
# Creates an entry like "0 5,2 * * ls -alh > /dev/null"
- cron:
name: "check dirs"
minute: "0"
hour: "5,2"
job: "ls -alh > /dev/null"

# Ensure an old job is no longer present. Removes any job that is prefixed
# by "#Ansible: an old job" from the crontab
- cron:
name: "an old job"
state: absent

# Creates an entry like "@reboot /some/job.sh"
- cron:
name: "a job for reboot"
special_time: reboot
job: "/some/job.sh"





share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f277797%2fmanaging-cron-jobs-across-multiple-servers%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    You can use ansible's cron module.



    Here is examples for some cron jobs:



    # Ensure a job that runs at 2 and 5 exists.
    # Creates an entry like "0 5,2 * * ls -alh > /dev/null"
    - cron:
    name: "check dirs"
    minute: "0"
    hour: "5,2"
    job: "ls -alh > /dev/null"

    # Ensure an old job is no longer present. Removes any job that is prefixed
    # by "#Ansible: an old job" from the crontab
    - cron:
    name: "an old job"
    state: absent

    # Creates an entry like "@reboot /some/job.sh"
    - cron:
    name: "a job for reboot"
    special_time: reboot
    job: "/some/job.sh"





    share|improve this answer




























      0














      You can use ansible's cron module.



      Here is examples for some cron jobs:



      # Ensure a job that runs at 2 and 5 exists.
      # Creates an entry like "0 5,2 * * ls -alh > /dev/null"
      - cron:
      name: "check dirs"
      minute: "0"
      hour: "5,2"
      job: "ls -alh > /dev/null"

      # Ensure an old job is no longer present. Removes any job that is prefixed
      # by "#Ansible: an old job" from the crontab
      - cron:
      name: "an old job"
      state: absent

      # Creates an entry like "@reboot /some/job.sh"
      - cron:
      name: "a job for reboot"
      special_time: reboot
      job: "/some/job.sh"





      share|improve this answer


























        0












        0








        0







        You can use ansible's cron module.



        Here is examples for some cron jobs:



        # Ensure a job that runs at 2 and 5 exists.
        # Creates an entry like "0 5,2 * * ls -alh > /dev/null"
        - cron:
        name: "check dirs"
        minute: "0"
        hour: "5,2"
        job: "ls -alh > /dev/null"

        # Ensure an old job is no longer present. Removes any job that is prefixed
        # by "#Ansible: an old job" from the crontab
        - cron:
        name: "an old job"
        state: absent

        # Creates an entry like "@reboot /some/job.sh"
        - cron:
        name: "a job for reboot"
        special_time: reboot
        job: "/some/job.sh"





        share|improve this answer













        You can use ansible's cron module.



        Here is examples for some cron jobs:



        # Ensure a job that runs at 2 and 5 exists.
        # Creates an entry like "0 5,2 * * ls -alh > /dev/null"
        - cron:
        name: "check dirs"
        minute: "0"
        hour: "5,2"
        job: "ls -alh > /dev/null"

        # Ensure an old job is no longer present. Removes any job that is prefixed
        # by "#Ansible: an old job" from the crontab
        - cron:
        name: "an old job"
        state: absent

        # Creates an entry like "@reboot /some/job.sh"
        - cron:
        name: "a job for reboot"
        special_time: reboot
        job: "/some/job.sh"






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 22 '17 at 12:25









        QuarindQuarind

        614




        614






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f277797%2fmanaging-cron-jobs-across-multiple-servers%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Loup dans la culture

            How to solve the problem of ntp “Unable to contact time server” from KDE?

            Connection limited (no internet access)