From 94526adba718d14d2e6bcddc05549e5aa25158a8 Mon Sep 17 00:00:00 2001 From: Ste Vaidis Date: Fri, 4 Aug 2023 10:33:06 +0300 Subject: [PATCH] Update 1.RockyLinux.md --- 1.RockyLinux.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/1.RockyLinux.md b/1.RockyLinux.md index a7420a4..6e30093 100644 --- a/1.RockyLinux.md +++ b/1.RockyLinux.md @@ -147,7 +147,7 @@ web.run_app(app, port=9999) `/lib/systemd/system/password.service ` -```sh +```ini [Unit] Description=Custom Python Service After=multi-user.target @@ -168,3 +168,22 @@ systemctl enable password systemctl start password.service systemctl status password.service ``` + +`/etc/systemd/system/docker-stop.service` + +```ini +[Unit] +Description=Stop docker and umount luks data partition before shutting down +[Service] +Type=oneshot +RemainAfterExit=true +ExecStop=/opt/docker-stop.sh +[Install] +WantedBy=multi-user.target +``` + +```sh +systemctl daemon-reload +systemctl enable docker-stop +systemctl status docker-stop +``` \ No newline at end of file