From e0851c4d02f6a8ea1e740f405515f37f2c450618 Mon Sep 17 00:00:00 2001 From: Raquel Queiroz Date: Sun, 20 Oct 2019 00:31:16 -0300 Subject: [PATCH 1/2] add note to cron generated with the currrent user --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3ec53c47..ed210700 100644 --- a/README.md +++ b/README.md @@ -23,12 +23,14 @@ This will create an initial `config/schedule.rb` file for you (as long as the co ### The `whenever` command +The `whenever` command will simply show you your `schedule.rb` file converted to cron syntax. It does not read or write your crontab file. + ```sh $ cd /apps/my-great-project $ bundle exec whenever ``` -This will simply show you your `schedule.rb` file converted to cron syntax. It does not read or write your crontab file; you'll need to do this in order for your jobs to execute: +To write your crontab file for your jobs, execute this command: ```sh $ whenever --update-crontab @@ -41,6 +43,8 @@ $ whenever --load-file config/my_schedule.rb # set the schedule file $ whenever --crontab-command 'sudo crontab' # override the crontab command ``` +> Note: If you run the whenever --update-crontab without passing the --user attribute, cron will be generated by the current user. This mean tasks that needs other user permission will fail. + You can list installed cron jobs using `crontab -l`. Run `whenever --help` for a complete list of options for selecting the schedule to use, setting variables in the schedule, etc. From 25aebf7ca2a409e99ecce0b4ebcb7026d1a2a49b Mon Sep 17 00:00:00 2001 From: Raquel Queiroz Date: Sun, 20 Oct 2019 00:52:33 -0300 Subject: [PATCH 2/2] Changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb92de95..35757ff2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ### unreleased +* Add note in README that cron is generated with the current user. [Raquel Queiroz] + ### 1.0.0 / Jun 13, 2019 * First stable release per SemVer.