From 845aa8da1025bd0b6e9741e352a1f83ea61dd6bf Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Sat, 30 Sep 2023 00:15:48 +0200 Subject: [PATCH] Moved start.sh command to systemd service --- application/launcher_json.service | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/application/launcher_json.service b/application/launcher_json.service index 15417cf..ca8e265 100644 --- a/application/launcher_json.service +++ b/application/launcher_json.service @@ -6,14 +6,10 @@ Description=Launcher_json Service # Non-root user User=www-data # Workspace directory -WorkingDirectory=/opt/launcher_json # 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 -SuccessExitStatus=0 -TimeoutStopSec=10 -Restart=on-failure -RestartSec=5 +Type=oneshot [Install] WantedBy=multi-user.target