Moved start.sh command to systemd service

This commit is contained in:
Quentin Legot 2023-09-30 00:15:48 +02:00
parent 4bcda53b49
commit 845aa8da10

View File

@ -6,14 +6,10 @@ Description=Launcher_json Service
# Non-root user # Non-root user
User=www-data User=www-data
# Workspace directory # Workspace directory
WorkingDirectory=/opt/launcher_json
# Path to Reposilite executable/script and its configuration. # Path to Reposilite executable/script and its configuration.
ExecStart=/opt/launcher_json/start.sh ExecStart=/usr/bin/docker run -p 8090:8080 --restart unless-stopped -d --rm launcher_json
# Policy # Policy
SuccessExitStatus=0 Type=oneshot
TimeoutStopSec=10
Restart=on-failure
RestartSec=5
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target