From 46397d90ed8e672ad21078f5a7542703f97ef532 Mon Sep 17 00:00:00 2001 From: Octopus Octopus Date: Mon, 25 Dec 2023 14:10:43 -0600 Subject: [PATCH] update service-files --- service-files/sharry.service | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 service-files/sharry.service diff --git a/service-files/sharry.service b/service-files/sharry.service new file mode 100644 index 0000000..b8b65e6 --- /dev/null +++ b/service-files/sharry.service @@ -0,0 +1,20 @@ +[Unit] +Description=sharry.service +Wants=network.target +After=network-online.target +RequiresMountsFor=/var/lib/containers/storage /var/run/containers/storage + +# %E is "the XDG_CONFIG path" + +[Service] +Environment=PODMAN_SYSTEMD_UNIT=%n +Restart=on-failure +TimeoutStopSec=70 +ExecStart=/usr/bin/podman-compose -f %E/compose/sharry.yml up -d +ExecStop=/usr/bin/podman-compose -f %E/compose/sharry.yml down +ExecStopPost=/usr/bin/podman rm sharry +Type=oneshot +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target default.target