mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Merge pull request #5950 from nextcloud/backport/5424/stable19
[stable19] Make systemd not kill child processes of a cron job when it finishes
This commit is contained in:
commit
0769a047cb
@ -106,10 +106,13 @@ This approach requires two files: **nextcloudcron.service** and **nextcloudcron.
|
||||
|
||||
[Service]
|
||||
User=www-data
|
||||
ExecStart=/usr/bin/php -f /var/www/nextcloud/cron.php
|
||||
ExecStart=/usr/bin/php -f /var/www/nextcloud/cron.php
|
||||
KillMode=process
|
||||
|
||||
Replace the user ``www-data`` with the user of your http server and ``/var/www/nextcloud/cron.php`` with the location of **cron.php** in your nextcloud directory.
|
||||
|
||||
The ``KillMode=process`` setting is necessary for external programs that are started by the cron job to keep running after the cron job has finished.
|
||||
|
||||
Note that the **.service** unit file does not need an ``[Install]`` section. Please check your setup because we recommended it in earlier versions of this admin manual.
|
||||
|
||||
**nextcloudcron.timer** should look like this::
|
||||
|
||||
Loading…
Reference in New Issue
Block a user