Project

General

Profile

Bug #16996

Updated by Javier BĂ©rtoli over 3 years ago

The package @crunch-dispatch-local@ has no @service@ file, which is a "known issue":https://gitter.im/arvados/community?at=5edecbc1ff7a920a723e3f3a 

 I manually got it running with the following service file 
 <pre> 
 # Copyright (C) The Arvados Authors. All rights reserved. 
 # 
 # SPDX-License-Identifier: AGPL-3.0 

 [Unit] 
 Description=Arvados Local Crunch Dispatcher Service 
 Documentation=https://doc.arvados.org/ 
 After=network.target 

 # systemd==229 (ubuntu:xenial) obeys StartLimitInterval in the [Unit] section 
 StartLimitInterval=0 

 # systemd>=230 (debian:9) obeys StartLimitIntervalSec in the [Unit] section 
 StartLimitIntervalSec=0 

 [Service] 
 Type=notify 
 EnvironmentFile=-/etc/arvados/environment 
 ExecStart=/usr/bin/crunch-dispatch-local -poll-interval=1 -crunch-run-command=/usr/local/bin/crunch-run.sh 
 # Set a reasonable default for the open file limit 
 LimitNOFILE=65536 
 Restart=always 
 RestartSec=1 
 LimitNOFILE=1000000 

 # systemd<=219 (centos:7, debian:8, ubuntu:trusty) obeys StartLimitInterval in the [Service] section 
 StartLimitInterval=0 

 [Install] 
 WantedBy=multi-user.target 
 </pre> 

 and a **shell script** @/usr/local/bin/crunch-run.sh@ 
 <pre> 
 #!/bin/sh 
 exec /usr/bin/crunch-run -container-enable-networking=default -container-network-mode=host $@ 
 </pre> 

 This can surely be improved but, at least, both these files should be added to the package

Back