Project

General

Profile

Actions

Bug #25617

closed

Wrong example configuration of cronjob in manual

Added by Steffen Müller about 15 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Category:
scheduler
Target version:
-
Start date:
2009-09-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

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):

Actions #2

Updated by Francois Suter about 15 years ago

Committed to trunk in revision 6109

Actions #3

Updated by Michael Stucki almost 11 years ago

  • Category set to scheduler
Actions #4

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)
Actions

Also available in: Atom PDF