Configure Owncloud to use system CRON in Synology NAS (DSM 6 RC)

This guide will show how to configure Synology CRON to call Owncloud cron.php regularly (every 15 minutes).

When it comes to Synology NAS, I never edit system files directly through SSH, if not absolutely needed. And luckily this time we don’t have to – as we can configure everything in Synology admin UI. The setup I have is Synology DSM 6 RC and latest Owncloud 9 (stable).

In order to setup Owncloud CRON to use Synology NAS system CRON – please do following.

1)

Create new scheduled task in [Control Panel -> System -> Task Scheduler -> Create -> Scheduled Task -> user-defined script]

05

2)

Give descriptive name and run as Root

1

3)

Run daily, every 15 minutes, starting 00:00 and ending 23:45

2

4)

Define your Owncloud cron.php location through localhost and any possible status reports about execution through email (if wanted)

3

5)

Approve changes with OK – and you have configured Synology CRON to call Owncloud’s cron.php every 15 minutes.

6)

You can check Synology crontab for the added lines – this is how to do that:

4

5a

7)

Last step is to define Owncloud to use system CRON and enjoy the scheduled Owncloud CRON jobs

6a

This setup seems to be working for me without issues – If this was working for you as well – please let me know by posting something below.

Thanks!!

Update 05.04.2016: If you have secured your Owncloud installation and enabled HTTP -> HTTPS re-direct, and you are calling Owncloud cron.php with Synology Task Scheduler, you might have to update your Task Scheduler script accordingly based on your needs and certificates installed for curl. If it is running on the same server, and you have an issue with certificates – you could configure the user-defined script execution to ignore certificate check:

Select Code
1
curl --insecure https://localhost/owncloud/cron.php

Feedback

Juha Ketola

Juha Ketola

Author is a passionate IT enthusiast and early adopter. Packed with years of experience leading Enterprise level IT development teams within the biggest companies of Technology industry. Watches closely start-ups and new disruptive innovations in order to stay on the cutting edge. Embraces hands-on IT development and IoT.
Juha Ketola
Link to open Linkedin Profile

Leave a Reply

css.php