From b61ea94a3681ef18683c35ddf960eadb0d37f798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Tue, 18 Dec 2018 21:43:19 +0100 Subject: [PATCH] update sub-section 'systemd' of 'background jobs' #1035 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- .../background_jobs_configuration.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/admin_manual/configuration_server/background_jobs_configuration.rst b/admin_manual/configuration_server/background_jobs_configuration.rst index 78e6daf76..3fbfbb50e 100644 --- a/admin_manual/configuration_server/background_jobs_configuration.rst +++ b/admin_manual/configuration_server/background_jobs_configuration.rst @@ -119,11 +119,12 @@ Replace the user ``www-data`` with the user of your http server and ``/var/www/n [Install] WantedBy=timers.target -The important parts in the timer-unit are ``OnBootSec`` and ``OnUnitActiveSec``.``OnBootSec`` will start the timer 5 minutes after boot, otherwise you would have to start it manually after every boot. ``OnUnitActiveSec`` will set a 5 minute timer after the service-unit was last activated. +The important parts in the timer-unit are ``OnBootSec`` and ``OnUnitActiveSec``. ``OnBootSec`` will start the timer 5 minutes after boot, otherwise you would have to start it manually after every boot. ``OnUnitActiveSec`` will set a 5 minute timer after the service-unit was last activated. -Now all that is left is to start and enable the timer by running these commands:: +Now all that is left is to start and enable the timer by running this command:: - systemctl start nextcloudcron.timer - systemctl enable nextcloudcron.timer + systemctl enable --now nextcloudcron.timer + +When the option ``--now`` is used with ``enable``, the resp. unit will also be started. .. note:: Selecting the option ``Cron`` in the admin menu for background jobs is not mandatory, because once `cron.php` is executed from the command line or cron service it will set it automatically to ``Cron``.g