From f104b0e7065e41904271fd0a4a1bef72fbf3e793 Mon Sep 17 00:00:00 2001 From: vlaborie Date: Mon, 3 Dec 2018 10:52:01 +0100 Subject: [PATCH] Surcharge sysvinit --- HowtoSystemd.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/HowtoSystemd.md b/HowtoSystemd.md index 66636d5b..ea309675 100644 --- a/HowtoSystemd.md +++ b/HowtoSystemd.md @@ -183,6 +183,14 @@ On pourra ensuite lister l'unité complète vue par _systemd_ : # systemctl cat varnish ~~~ +A noter que cela fonctionne aussi pour les services qui n'ont pas d'unité systemd mais encore une unité sysvinit dans /etc/init.d/, on pourra par exemple mettre en place un redémarrage automatique d'un service : + +~~~ +[Service] +PIDFile=/run/service.pid +Restart=always +RemainAfterExit=no +~~~ ## Utiliser les templates d'unités