]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: add a terminate_service systemd function
authorJohn Mulligan <jmulligan@redhat.com>
Sun, 19 Nov 2023 00:00:38 +0000 (19:00 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 2 Jan 2024 14:30:21 +0000 (09:30 -0500)
commit87e6dc6c5fac5f3ad2641015ffebd4206bc9a0b0
treeaf880bb677bb45c979eb1f88c2f16acf443d45d6
parent1991cd6de845c65d8ab3b887a154f1e671d9b9f2
cephadm: add a terminate_service systemd function

Add a function that encapsulates the common 3-step process found in
cephadm of stopping, resetting errors, and disabling a service.
This will be used to handle new services to stop as well as cleaning
up some places where the three steps are performed inline.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadmlib/systemd.py