nc cron killmode process
This commit is contained in:
parent
4663f7632b
commit
3ce2807d9f
2 changed files with 3 additions and 0 deletions
|
@ -82,6 +82,7 @@ defaults = {
|
||||||
'command': '/usr/bin/php -f /opt/nextcloud/cron.php',
|
'command': '/usr/bin/php -f /opt/nextcloud/cron.php',
|
||||||
'when': '*:0/5',
|
'when': '*:0/5',
|
||||||
'user': 'www-data',
|
'user': 'www-data',
|
||||||
|
'kill_mode': 'process',
|
||||||
},
|
},
|
||||||
'nextcloud-rescan': {
|
'nextcloud-rescan': {
|
||||||
'command': '/opt/nextcloud_rescan',
|
'command': '/opt/nextcloud_rescan',
|
||||||
|
|
|
@ -40,6 +40,8 @@ def systemd(metadata):
|
||||||
units[f'{name}.service']['Service']['WorkingDirectory'] = config['working_dir']
|
units[f'{name}.service']['Service']['WorkingDirectory'] = config['working_dir']
|
||||||
if config.get('success_exit_status'):
|
if config.get('success_exit_status'):
|
||||||
units[f'{name}.service']['Service']['SuccessExitStatus'] = config['success_exit_status']
|
units[f'{name}.service']['Service']['SuccessExitStatus'] = config['success_exit_status']
|
||||||
|
if config.get('kill_mode'):
|
||||||
|
units[f'{name}.service']['Service']['KillMode'] = config['kill_mode']
|
||||||
|
|
||||||
services[f'{name}.timer'] = {}
|
services[f'{name}.timer'] = {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue