Skip to content

Commit 9ffde79

Browse files
DavidsonGomesclaude
andcommitted
fix: use Type=oneshot for systemd service (start-services.sh uses nohup)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f01f03c commit 9ffde79

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

install-service.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,15 @@ After=network.target
100100
Documentation=https://github.com/EvolutionAPI/evo-nexus
101101
102102
[Service]
103-
Type=forking
103+
Type=oneshot
104+
RemainAfterExit=yes
104105
User=$SERVICE_USER
105106
Group=$SERVICE_USER
106107
WorkingDirectory=$SERVICE_DIR
107108
Environment=PATH=$SERVICE_HOME/.local/bin:/usr/local/bin:/usr/bin:/bin
108109
Environment=HOME=$SERVICE_HOME
109110
ExecStart=/bin/bash $SERVICE_DIR/start-services.sh
110111
ExecStop=/bin/bash -c 'pkill -f "terminal-server/bin/server.js" 2>/dev/null; pkill -f "dashboard/backend.*app.py" 2>/dev/null'
111-
PIDFile=$SERVICE_DIR/logs/dashboard.pid
112-
Restart=on-failure
113-
RestartSec=10
114112
StandardOutput=append:$SERVICE_DIR/logs/service.log
115113
StandardError=append:$SERVICE_DIR/logs/service.log
116114

0 commit comments

Comments
 (0)