|
|
@@ -30,13 +30,19 @@ It’s advisable that you run the Cron job as your Web server user (often `www-d
|
|
|
|
|
|
### Example on Debian/Ubuntu
|
|
|
|
|
|
-To run the updater script every hour, and 10 minutes past the hour:
|
|
|
+To run the updater script every hour, at 10 minutes past the hour:
|
|
|
|
|
|
Edit `/etc/crontab` and append the following line:
|
|
|
```text
|
|
|
-10 * * * * www-data php -f /usr/share/FreshRSS/app/actualize_script.php > /tmp/FreshRSS.log 2>&1
|
|
|
+10 * * * * www-data php -f /usr/share/FreshRSS/app/actualize_script.php >> /tmp/FreshRSS.log 2>&1
|
|
|
```
|
|
|
|
|
|
+This will append new log lines to the end of the existing log file. You may want to set up `logrotate` or a similar utility to prevent the logfile from growing too large.
|
|
|
+
|
|
|
+> FreshRSS error: This PHP script may only be invoked from command line!
|
|
|
+
|
|
|
+If you receive this error message in the cron job's logs, try replacing `php` with the contents of `which php`, like `/usr/local/bin/php`.
|
|
|
+
|
|
|
## Systemd as a trigger
|
|
|
|
|
|
Some systems can’t use a Cron job, but they can use systemd. It’s easy to configure it to mimic Cron’s features.
|