Ändere den Typ des Services in der Datei yourpart-daemon.service von 'notify' auf 'simple' für eine verbesserte Service-Verwaltung. Füge im Skript deploy-server.sh eine Verzögerung von 3 Sekunden nach dem Start des Services hinzu, um sicherzustellen, dass der Dienst ordnungsgemäß initialisiert wird.
This commit is contained in:
committed by
Torsten (PC)
parent
a4bd585730
commit
391e5d9992
@@ -140,7 +140,8 @@ sudo systemctl enable "$SERVICE_NAME"
|
||||
|
||||
# 10. Starte Service
|
||||
log_info "Starte Service..."
|
||||
sudo systemctl start "$SERVICE_NAME"
|
||||
sudo systemctl start "$SERVICE_NAME" &
|
||||
sleep 3
|
||||
|
||||
# 11. Prüfe Status
|
||||
log_info "Prüfe Service-Status..."
|
||||
|
||||
Reference in New Issue
Block a user