Moved start.sh command to systemd service
This commit is contained in:
parent
4bcda53b49
commit
845aa8da10
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user