#1 Le 03/04/2021, à 03:34
- katian
[RESOLU] systemd & instances utilisateur user@UID.service
Bonjour,
lorsque que je regarde le template d'une session utilisateur :
$ systemctl cat user@.service
j'ai :
# /lib/systemd/system/user@.service
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=User Manager for UID %i
Documentation=man:user@.service(5)
After=systemd-user-sessions.service user-runtime-dir@%i.service dbus.service
Requires=user-runtime-dir@%i.service
IgnoreOnIsolate=yes
[Service]
User=%i
PAMName=systemd-user
Type=notify
ExecStart=/lib/systemd/systemd --user
Slice=user-%i.slice
KillMode=mixed
Delegate=pids memory
TasksMax=infinity
TimeoutStopSec=120s
KeyringMode=inherit
# /usr/lib/systemd/system/user@.service.d/timeout.conf
# Avoid long hangs during shutdown if user services fail/hang due to X.org
# going away too early
[Service]
TimeoutStopSec=5
il existe le drop-in (surcharge)
/usr/lib/systemd/system/user@.service.d/timeout.conf
pour lequel il est précisé
Avoid long hangs during shutdown if user services fail/hang due to X.org going away too early
je ne suis pas certain de comprendre cette phrase ...
si vous avez une idée
Dernière modification par katian (Le 29/04/2021, à 05:37)
Hors ligne
#2 Le 03/04/2021, à 03:57
- Vobul
Re : [RESOLU] systemd & instances utilisateur user@UID.service
Ben en gros quand t'éteinds l'ordi il laisse 5 secondes au service avant de d'envoyer un signal SIGKILL.
Plus d'infos avec :
man systemd.service
et /timeoutstopsec.
Vobul
Utilisez le retour utilisable de commandes !!!
J'aime la langue française, mais je parle franglais, deal with it.
RTFM
Hors ligne
#3 Le 03/04/2021, à 05:22
- katian
Re : [RESOLU] systemd & instances utilisateur user@UID.service
merci Vobul
Hors ligne
#4 Le 06/04/2021, à 06:04
- katian
Re : [RESOLU] systemd & instances utilisateur user@UID.service
Avoid long hangs during shutdown if user services fail/hang due to X.org going away too early
sur un ubuntu server je suis étonné de voir quelque chose en lien avec X.org
Hors ligne
#5 Le 29/04/2021, à 05:36
- katian
Re : [RESOLU] systemd & instances utilisateur user@UID.service
salut,
j'ai créé un fichier vide (drop-in)
/etc/systemd/system/user@.service.d/timeout.conf
qui contourne ce timeout
/usr/lib/systemd/system/user@.service.d/timeout.conf
Hors ligne