Files
vpnbot/scripts/vpnbot.service
T
2023-03-01 23:08:36 +04:00

13 lines
404 B
Desktop File

[Unit]
Description=VPN: Docker Compose Application Service
Requires=docker.service
After=docker.service
[Service]
WorkingDirectory=/root/vpnbot
ExecStart=/bin/sh -c "RELEASE=$(lsb_release -rs) SYSTEM=$(lsb_release -is | tr '[:upper:]' '[:lower:]') docker compose up --build --force-recreate"
ExecStop=/usr/bin/docker compose down
TimeoutStartSec=0
Restart=on-failure
[Install]
WantedBy=multi-user.target