Skip to content

Commit c9bee8c

Browse files
committed
working systemd setup
1 parent 21a71ba commit c9bee8c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/adafruit-webide.service

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
[Unit]
22
Description=Adafruit-WebIDE
33

4-
ExecStart=/usr/bin/nodejs server.js
5-
WorkingDirectory=/usr/local/webide
4+
[Service]
5+
ExecStart=/usr/bin/node /usr/share/adafruit/webide/server.js
6+
WorkingDirectory=/usr/share/adafruit/webide
67
Restart=always
78
RestartSec=10
89
StandardOutput=syslog
910
StandardError=syslog
1011
SyslogIdentifier=webide
1112
# Change to a non-root user
12-
# User=webide
13-
# Group=webide
13+
User=webide
14+
Group=webide
1415
# Set environment options
1516
Environment=NODE_ENV=production PORT=8080
1617

0 commit comments

Comments
 (0)