From ec9d8948045e111e97e6abc7978f669aabf6e9ce Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Tue, 4 Feb 2025 18:47:20 +0530 Subject: [PATCH] ci: fix pre-commit --- docs/custom-apps-podman.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/custom-apps-podman.md b/docs/custom-apps-podman.md index e7b60bc8..765b9b7d 100644 --- a/docs/custom-apps-podman.md +++ b/docs/custom-apps-podman.md @@ -87,28 +87,29 @@ Podman (the POD MANager) is a tool for managing containers and images, volumes m - `podman exec -ti erpnext_backend_1 /bin/bash` - `bench new-site myerp.net --mariadb-root-password 123456 --admin-password 123123` - `bench --site myerp.net install-app erpnext` - -## Autostart pod + +## Autostart pod - Systemd is the best option on autostart pods when the system boots. Create a unit file in either `/etc/systemd/system` [for root user] or `~/.config/systemd/user` [for non-root user] - + ```ruby [Unit] Description=Podman system daemon service After=network-online.target - + [Service] #User= #Group= Type=oneshot ExecStart=podman pod start POD_NAME - - + + [Install] WantedBy=default.target ``` - **Note:** Replace POD_NAME with a created pod name while creating a pod. This is a basic systemd unit file to autostart pod, but multiple options can be used, refer to the man page for [systemd](https://man7.org/linux/man-pages/man1/init.1.html). For better management of containers, [Quadlet](https://docs.podman.io/en/v4.4/markdown/podman-systemd.unit.5.html) is the best option for ease of updating and tracing issues on each container. + + **Note:** Replace POD_NAME with a created pod name while creating a pod. This is a basic systemd unit file to autostart pod, but multiple options can be used, refer to the man page for [systemd](https://man7.org/linux/man-pages/man1/init.1.html). For better management of containers, [Quadlet](https://docs.podman.io/en/v4.4/markdown/podman-systemd.unit.5.html) is the best option for ease of updating and tracing issues on each container. ## Troubleshoot