Bug #25617
closedWrong example configuration of cronjob in manual
0%
Description
On page 6 of the manual, the cronjob example configuration supposes to use an additional "user" parameter in the crontab of root:
<--- snip
If you are editing the root user's crontab, there will be one additional parameter to enter, i.e. the user with which the job should run. Example:
*/15 * * * * www /usr/local/bin/php /home/bob/www/typo3/cli_dispatch.phpsh scheduler
This will run the job as user “www”.
---> snap
Problem: The "user" parameter is not used when in user context (even root). Using it leads to a cron error.
See the cited wikipedia article:
Some implementations of cron, such as that in the popular 4th BSD edition written by Paul Vixie and included in many Linux distributions, insert a username into the format as the sixth field, as whom the specified job will be run (subject to user existence in /etc/passwd and allowed permissions), but only in the system crontabs (/etc/crontab and /etc/cron.d/*), not in others which are each assigned to a single user to configure.
So "user" is not allowed when using crontab -e
(issue imported from #M12078)
Updated by Francois Suter about 15 years ago
Text corrected to:
If you are editing system crontabs (for example /etc/crontab and /etc/cron.d/*), there will be one additional parameter to enter, i.e. the user with which the job should run. Example (additional user parameter in bold):
Updated by Francois Suter about 15 years ago
Committed to trunk in revision 6109
Updated by Michael Stucki almost 11 years ago
- Project changed from 739 to TYPO3 Core
- Category changed from scheduler to scheduler
- Target version deleted (
0)