26 lines
565 B
Desktop File
26 lines
565 B
Desktop File
[Unit]
|
|
Description=%p-%i
|
|
|
|
# Requirements
|
|
Requires=docker.service
|
|
Requires=discovery-u@%i.service
|
|
Requires=backup-u@%i.timer
|
|
|
|
# Dependency ordering
|
|
After=docker.service
|
|
Before=discovery-u@%i.service
|
|
Before=backup-u@%i.timer
|
|
|
|
[Service]
|
|
Restart=always
|
|
RestartSec=10
|
|
TimeoutStartSec=60
|
|
TimeoutStopSec=15
|
|
WorkingDirectory=/data/domains/%i/
|
|
ExecStartPre=/bin/cp /data/domains/%i/TLS/%i.pem /data/runtime/haproxy/approved-certs/%i.pem
|
|
ExecStart=/bin/bash -euxc '/data/domains/%i/RUN'
|
|
ExecStop=/bin/bash -euxc '/data/domains/%i/STOP'
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|