Ä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
|
# 10. Starte Service
|
||||||
log_info "Starte Service..."
|
log_info "Starte Service..."
|
||||||
sudo systemctl start "$SERVICE_NAME"
|
sudo systemctl start "$SERVICE_NAME" &
|
||||||
|
sleep 3
|
||||||
|
|
||||||
# 11. Prüfe Status
|
# 11. Prüfe Status
|
||||||
log_info "Prüfe Service-Status..."
|
log_info "Prüfe Service-Status..."
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ After=network.target postgresql.service
|
|||||||
Wants=postgresql.service
|
Wants=postgresql.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=notify
|
Type=simple
|
||||||
User=yourpart
|
User=yourpart
|
||||||
Group=yourpart
|
Group=yourpart
|
||||||
WorkingDirectory=/opt/yourpart
|
WorkingDirectory=/opt/yourpart
|
||||||
|
|||||||
Reference in New Issue
Block a user