Add a templatable unit-file for TesseraCT
This commit is contained in:
18
tesseract@.service
Normal file
18
tesseract@.service
Normal 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
|
||||||
|
|
Reference in New Issue
Block a user