diff --git a/tesseract@.service b/tesseract@.service new file mode 100644 index 0000000..381e0a3 --- /dev/null +++ b/tesseract@.service @@ -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 +