narada-setup-cron - synchronize project crontab with user crontab
This document describes narada-setup-cron version v2.2.0
narada-setup-cron [--clean]
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" 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
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.
config/crontab/* var/use/cron
Narada 1.x project use config/crontab instead of config/crontab/*.
config/crontab
config/crontab/*
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.
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
MetaCPAN Search
https://metacpan.org/search?q=Narada
CPAN Ratings
http://cpanratings.perl.org/dist/Narada
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Narada
CPAN Testers Matrix
http://matrix.cpantesters.org/?dist=Narada
CPANTS: A CPAN Testing Service (Kwalitee)
http://cpants.cpanauthors.org/dist/Narada
Alex Efros <powerman@cpan.org>
Nick Levchenko <nick-lev@ya.ru>
This software is Copyright (c) 2008-2015 by Alex Efros <powerman@cpan.org>.
This is free software, licensed under:
The MIT (X11) License
To install Narada, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Narada
CPAN shell
perl -MCPAN -e shell install Narada
For more information on module installation, please visit the detailed CPAN module installation guide.