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