We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d40f9be + 9ffde79 commit ea44fcaCopy full SHA for ea44fca
1 file changed
install-service.sh
@@ -100,17 +100,15 @@ After=network.target
100
Documentation=https://github.com/EvolutionAPI/evo-nexus
101
102
[Service]
103
-Type=forking
+Type=oneshot
104
+RemainAfterExit=yes
105
User=$SERVICE_USER
106
Group=$SERVICE_USER
107
WorkingDirectory=$SERVICE_DIR
108
Environment=PATH=$SERVICE_HOME/.local/bin:/usr/local/bin:/usr/bin:/bin
109
Environment=HOME=$SERVICE_HOME
110
ExecStart=/bin/bash $SERVICE_DIR/start-services.sh
111
ExecStop=/bin/bash -c 'pkill -f "terminal-server/bin/server.js" 2>/dev/null; pkill -f "dashboard/backend.*app.py" 2>/dev/null'
-PIDFile=$SERVICE_DIR/logs/dashboard.pid
112
-Restart=on-failure
113
-RestartSec=10
114
StandardOutput=append:$SERVICE_DIR/logs/service.log
115
StandardError=append:$SERVICE_DIR/logs/service.log
116
0 commit comments