[Unit] Description=node.js openhab cloud server www process (no disconnect notices/socket management) [Service] User=openhabcloud Group=openhabcloud LimitNOFILE=300 Environment=NODE_ENV=production Environment=TASK=web Environment=PORT=3001 Environment=HOST=192.168.0.15 #Environment=DEBUG=oath2orize Restart=always RestartSec=10 # Restart service after 10 seconds if node service crashes StandardOutput=syslog # Output to syslog StandardError=syslog # Output to syslog SyslogIdentifier=openhabcloud WorkingDirectory=/home/openhab-cloud ExecStart=/usr/bin/node --max-old-space-size=8192 /home/openhab-cloud/app.js [Install] WantedBy=multi-user.target