Add a templatable unit-file for TesseraCT

This commit is contained in:
Pim van Pelt
2025-08-24 13:10:12 +02:00
parent be833e189a
commit ca6797c1f6

18
tesseract@.service Normal file
View File

@@ -0,0 +1,18 @@
[Unit]
Description=Tesseract CT Log service for %i
ConditionFileExists=/ssd-vol0/logs/%i/data/.env
After=network.target
[Service]
# The %i here refers to the instance name, e.g., "lipase2025h2"
# This path should point to where your instance-specific .env files are located
EnvironmentFile=/ssd-vol0/logs/%i/data/.env
ExecStart=/home/ctlog/bin/tesseract-posix $TESSERACT_ARGS
User=ctlog
Group=ctlog
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target