Skip to content

Commit ea44fca

Browse files
committed
fix: systemd Type=oneshot
2 parents d40f9be + 9ffde79 commit ea44fca

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

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)