add service files for gitea and podgrab
This commit is contained in:
parent
a2532dd7b0
commit
249fbe6de5
|
@ -0,0 +1,22 @@
|
||||||
|
[Unit]
|
||||||
|
Description=gitea.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
|
||||||
|
#ExecStartPre=/bin/rm -f %t/container-gitea.pid %t/container-gitea.ctr-id
|
||||||
|
ExecStart=/usr/bin/podman-compose -f %E/compose/gitea.yml up -d
|
||||||
|
ExecStop=/usr/bin/podman-compose -f %E/compose/gitea.yml down
|
||||||
|
ExecStopPost=/usr/bin/podman rm gitea
|
||||||
|
#PIDFile=%t/container-gitea.pid
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target default.target
|
|
@ -0,0 +1,20 @@
|
||||||
|
[Unit]
|
||||||
|
Description=podgrab.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/podgrab.yml up -d
|
||||||
|
ExecStop=/usr/bin/podman-compose -f %E/compose/podgrab.yml down
|
||||||
|
ExecStopPost=/usr/bin/podman rm podgrab
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target default.target
|
Loading…
Reference in New Issue