first commit

This commit is contained in:
duffyduck
2026-08-20 10:33:59 +02:00
commit 75fba0229a
14 changed files with 3076 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
# =====================================================================
# Beispiel-Unit (wird von install.sh --with-systemd automatisch
# mit den korrekten Pfaden erzeugt und nach
# /etc/systemd/system/checkmk-stack.service geschrieben).
#
# Manuell:
# cp systemd/checkmk-stack.service.example \
# /etc/systemd/system/checkmk-stack.service
# # Pfade und Compose-Kommando anpassen
# systemctl daemon-reload && systemctl enable --now checkmk-stack
# =====================================================================
[Unit]
Description=Checkmk + NGINX Proxy Manager (Container-Stack)
Wants=network-online.target
After=network-online.target
# Nur bei Docker zusaetzlich:
#Requires=docker.service
#After=docker.service
[Service]
Type=oneshot
RemainAfterExit=yes
WorkingDirectory=/opt/checkmk-stack
EnvironmentFile=/opt/checkmk-stack/.env
TimeoutStartSec=0
# Docker: /usr/bin/docker compose up -d
# Podman: /usr/bin/podman-compose up -d
ExecStart=/bin/sh -c '/usr/bin/podman-compose up -d'
ExecStartPost=/opt/checkmk-stack/scripts/cmk-manage.sh start-all-sites
ExecStop=/bin/sh -c '/usr/bin/podman-compose down'
[Install]
WantedBy=multi-user.target