Git Product home page Git Product logo

vyatta-cron's Introduction

vyatta-cron

Vyatta cron configuration templates and scripts

Depends on cron package (installed by default).

Configuration commands:

system
    task-scheduler
        task <name>
            crontab-spec <UNIX cron time spec>
            executable
                arguments <arguments string>
                path <path to executable>
            interval
                <int32>[mhd]    

Example:

system
    task-scheduler
        task mytask
            executable
                path /config/scripts/mytask
                arguments "arg1 arg2 arg3"
        task anothertask
            crontab-spec "* * * 1 *"
            executable
                path /config/scripts/anothertask

interval

set system task-scheduler task <name> interval <value><suffix>

Sets the task to execute every N minutes, hours, or days. Suffixes:

  • m -- minutes
  • h -- hours
  • d -- days

If suffix is omitted, minutes are implied.

Examples:

Run every five minutes:

set system task-schedule task TEST interval 5

or

set system task-schedule task TEST interval 5m

Run every two hours:

set system task-schedule task TEST interval 2h

Run every 7 days:

set system task-schedule task TEST interval 7d

cron-spec

This is usual UNIX cron time spec. For the cases "interval" is not enough.

set system task-scheduler task TEST crontab-spec "* * * 1 *"

executable

Path and arguments of the executable to run.

set system task-schedule task TEST executable path /config/scripts/myscript
set system task-schedule task TEST executable arguments "arg1 arg2"

Technical details

This package is just a wrapper for UNIX crontab, nothing more.

Configuration is written to /etc/cron.d/vyatta-crontab.

On reboot it is removed before config load and re-created if related configuration exists.

vyatta-cron's People

Contributors

dmbaturin avatar mjpcomp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.