Bug #16996

[crunch-dispatch-local] package missing service file

Added by Javier Bértoli 10 days ago. Updated 1 day ago.

Status:
In Progress
Priority:
Normal
Assigned To:
Category:
Crunch
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
(Total: 0.00 h)
Story points:
-

Description

The package crunch-dispatch-local has no service file, which is a known issue

I manually got it running with the following service file

# 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

and a shell script /usr/local/bin/crunch-run.sh

#!/bin/sh
exec /usr/bin/crunch-run -container-enable-networking=default -container-network-mode=host $@

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


Subtasks

Task #17026: ReviewNewWard Vandewege


Related issues

Related to Arvados - Story #9952: crunch-dispatch-local config file and systemd unitClosed

Related to Arvados - Task #16545: Review 16471-install-using-saltResolved10/09/2020

Associated revisions

Revision e22b49be (diff)
Added by Javier Bértoli 4 days ago

fix(crunch-dispatch-local): add missing service file

refs #16996
Arvados-DCO-1.1-Signed-off-by: Javier Bértoli <>

History

#1 Updated by Javier Bértoli 10 days ago

  • Related to Story #9952: crunch-dispatch-local config file and systemd unit added

#2 Updated by Javier Bértoli 10 days ago

  • Description updated (diff)

#3 Updated by Peter Amstutz 6 days ago

  • Target version changed from 2020-10-21 Sprint to 2020-11-04 Sprint

#4 Updated by Javier Bértoli 4 days ago

  • Related to Task #16545: Review 16471-install-using-salt added

#5 Updated by Peter Amstutz 1 day ago

  • Assigned To set to Javier Bértoli
  • Status changed from New to In Progress

Also available in: Atom PDF