Cron.php successful?

Hi there. Brand new user but this is a great program with lots of promise.

I am operating on the assumption that cron.php will scan external storages for changes in file structure.

I have setup crontab to run the following (as user www-data):

          • php -f /var/www/html/nextcloud/cron.php > /tmp/cronlog.log_$(date) 2>&1

But I am not able to verify this task is running successfully. There are no error messages in the log file, but I would like to see some confirmation of success.

Thanks

Hi. Use terminal
$ sudo service cron status

Jan 24 04:51:02 uni-plx-nxt CRON[3080]: pam_unix(cron:session): session closed for user www-data
Jan 24 04:52:01 uni-plx-nxt CRON[3109]: pam_unix(cron:session): session opened for user www-data by (uid=0)
Jan 24 04:52:01 uni-plx-nxt CRON[3110]: (www-data) CMD (php -f /var/www/html/nextcloud/cron.php > /tmp/cronlog.log_$(date) 2>&1)

$ cd /etc/pam.d
$ sudo nano common-session-noninteractive


and here are more per-package modules (the “Additional” block)

session required pam_unix.so

Try, Change to


and here are more per-package modules (the “Additional” block)

**session [success=1 default=ignore] pam_succeed_if.so service in cron quiet use_uid**
session required pam_unix.so

$ sudo service cron restart
$ sudo service cron status