Skip to content

Commit

Permalink
added instruction on running cron
Browse files Browse the repository at this point in the history
  • Loading branch information
following5 committed Jun 12, 2013
1 parent 76522aa commit ee85072
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/util2/cron/runcron.php
Expand Up @@ -21,7 +21,8 @@
// test for user who runs the cronjob
$processUser = posix_getpwuid(posix_geteuid());
if ($processUser['name'] != $opt['cron']['username'])
die("ERROR: runcron must be run by '" . $opt['cron']['username'] . "' but was called by '" . $processUser['name'] . "'\n");
die("ERROR: runcron must be run by '" . $opt['cron']['username'] . "' but was called by '" . $processUser['name'] . "'\n".
"Try something like 'sudo -u ".$opt['cron']['username']." php runcron.php'.\n");

// use posix pid-files to lock process
if (!CreatePidFile($opt['cron']['pidfile']))
Expand Down

0 comments on commit ee85072

Please sign in to comment.