Update ocf resource agent, pacemaker and systemd notes.

This commit is contained in:
2022-02-06 20:12:32 +01:00
parent f289a46857
commit 2e5bf7d1a7
3 changed files with 16 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
:PROPERTIES:
:ID: af912c20-4752-44ba-bdc0-99451ac0cd10
:mtime: 20220117200052
:mtime: 20220130135731
:ctime: 20220117184604
:END:
#+title: systemd
@@ -18,7 +18,7 @@
* Tips
** Pour déclencher le démarrage d'une /unit/ une fois une @IP obtenue sur une interface
** Déclencher le démarrage d'une /unit/ une fois une @IP obtenue sur une interface
* Ajouter les contraintes suivantes à l'/unit/ à déclencher :
#+BEGIN_SRC shell
[Unit]
@@ -35,6 +35,13 @@ ExecStart=/lib/systemd/systemd-networkd-wait-online -i <interface>:routable
EOF
systemctl enable systemd-networkd-wait-online.service
#+END_SRC
** Vérifier qu'un service est en cours d'exécution
#+BEGIN_SRC shell
systemctl is-active --quiet systemd-networkd.service && echo Service is running
#+END_SRC
#+RESULTS:
: Service is running
* Références
* [[https://fr.wikipedia.org/wiki/Systemd][Wikipedia]]