15 lines
334 B
Django/Jinja
15 lines
334 B
Django/Jinja
[Unit]
|
|
Description=Gitea Git Service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=true
|
|
WorkingDirectory={{ podman_projects_dir | default('/opt/podman') }}/gitea
|
|
ExecStart=/usr/bin/podman play kube --replace gitea.yaml
|
|
ExecStop=/usr/bin/podman play kube --down gitea.yaml
|
|
Restart=on-failure
|
|
RestartSec=10
|
|
|
|
[Install]
|
|
WantedBy=default.target
|