narada-setup-cron - synchronize project crontab with user crontab
This document describes narada-setup-cron version v2.2.0
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.
Narada 1.x project use
config/crontab instead of
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.
git clone https://github.com/powerman/Narada.git
Alex Efros <email@example.com>
Nick Levchenko <firstname.lastname@example.org>
This software is Copyright (c) 2008-2015 by Alex Efros <email@example.com>.
This is free software, licensed under:
The MIT (X11) License