Projet

Général

Profil

Bug #16641

debian/systemd : utiliser timeout=0 plutôt que timeout=infinity

Ajouté par Frédéric Péters il y a presque 7 ans. Mis à jour il y a plus de 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
31 mai 2017
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Ça n'est pas géré dans le systemd de jessie.

       TimeoutStartSec=
           Configures the time to wait for start-up. If a daemon service does not signal start-up completion within the configured time, the
           service will be considered failed and will be shut down again. Takes a unit-less value in seconds, or a time span value such as
           "5min 20s". Pass "0" to disable the timeout logic. Defaults to TimeoutStartSec= from the manager configuration file, except when
           Type=oneshot is used, in which case the timeout is disabled by default.

vs la version 232 (stretch/sid) :

       TimeoutStartSec=
           Configures the time to wait for start-up. If a daemon service does not signal start-up completion within the configured time, the
           service will be considered failed and will be shut down again. Takes a unit-less value in seconds, or a time span value such as
           "5min 20s". Pass "infinity" to disable the timeout logic. Defaults to DefaultTimeoutStartSec= from the manager configuration
           file, except when Type=oneshot is used, in which case the timeout is disabled by default (see systemd-system.conf(5)).

Fichiers

Révisions associées

Révision 4bb91922 (diff)
Ajouté par Frédéric Péters il y a presque 7 ans

debian: use 0 to denote infinity in TimeoutStartSec (#16641)

Specifying "infinity" will be ok with systemd from Stretch.

Historique

#1

Mis à jour par Frédéric Péters il y a presque 7 ans

Sinon,

May 31 14:12:19 publik-frontal systemd[1]: [/lib/systemd/system/combo.service:14] Failed to parse usec_t value, ignoring: infinity
#2

Mis à jour par Thomas Noël il y a presque 7 ans

Ack

(je me demande quand même si on devrait pas mettre 30 ou 60 minutes... mais je sais pas)

#3

Mis à jour par Frédéric Péters il y a presque 7 ans

  • Statut changé de En cours à Résolu (à déployer)

On verra si jamais infinity pose un problème à un moment.

commit 4bb91922fde28cf805127de2e451d97425bafcba
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Wed May 31 14:17:51 2017 +0200

    debian: use 0 to denote infinity in TimeoutStartSec (#16641)
#4

Mis à jour par Frédéric Péters il y a plus de 5 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF