Alex Efros > Narada > narada-setup-cron

Download:
Narada-v2.2.0.tar.gz

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

narada-setup-cron - synchronize project crontab with user crontab

VERSION ^

This document describes narada-setup-cron version v2.2.0

USAGE ^

    narada-setup-cron [--clean]

DESCRIPTION ^

Should be executed in project deploy directory (or Narada 1.x project root directory).

Install/remove your Narada project's cron configuration.

When executed without params add/update project's cron configuration found in "config/crontab" into user's crontab.

When executed with --clean option or in case "config/crontab" doesn't exists will remove project's cron configuration from user's crontab.

SYNTAX OF "config/crontab" ^

Syntax of "config/crontab" is same as for system crontab, but commands in project's cron configuration will be executed in project's root directory instead of user's home directory. For this, the "cd /path/to/project || exit;" command will be added on-the-fly before user command, i.e. every line in "config/crontab" like:

    * * * * *    do something

will turn into line in user's crontab like:

    * * * * *    cd /path/to/project || exit; do something

DIAGNOSTICS ^

project directory must not contain \n

Project root directory used in BEGIN/END markers in crontab, which has line-based format and so directory name must not contain \n.

Also project root directory used in "cd" command in crontab, which suffer from same limitation.

crontab -e: %s

Internal error, possible reason - user doesn't have access to system crontab.

CONFIGURATION AND ENVIRONMENT ^

        config/crontab/*
        var/use/cron

Narada 1.x project use config/crontab instead of config/crontab/*.

SUPPORT ^

Bugs / Feature Requests

Please report any bugs or feature requests through the issue tracker at https://github.com/powerman/Narada/issues. You will be notified automatically of any progress on your issue.

Source Code

This is open source software. The code repository is available for public review and contribution under the terms of the license. Feel free to fork the repository and submit pull requests.

https://github.com/powerman/Narada

    git clone https://github.com/powerman/Narada.git

Resources

AUTHOR ^

Alex Efros <powerman@cpan.org>

Nick Levchenko <nick-lev@ya.ru>

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2008-2015 by Alex Efros <powerman@cpan.org>.

This is free software, licensed under:

  The MIT (X11) License
syntax highlighting: