i am running node-red which is handled by this service:
Code: Select all
# systemd service file to start Node-RED
[Unit]
Description=Node-RED graphical event wiring tool.
Wants=network.target
Documentation=http://nodered.org/docs/hardware/raspberrypi.html
[Service]
Type=simple
# Run as normal pi user - feel free to change...
User=pi
Group=pi
WorkingDirectory=/home/pi
Nice=5
Environment="NODE_OPTIONS=--max-old-space-size=128"
# uncomment and edit next line if you need an http proxy
#Environment="HTTP_PROXY=my.httpproxy.server.address"
# uncomment the next line for a more verbose log output
#Environment="NODE_RED_OPTIONS=-v"
#ExecStart=/usr/bin/env node $NODE_OPTIONS red.js $NODE_RED_OPTIONS
ExecStart=/usr/bin/env node-red-pi $NODE_OPTIONS $NODE_RED_OPTIONS
# Use SIGINT to stop
KillSignal=SIGINT
# Auto restart on crash
Restart=on-failure
# Tag things in the log
SyslogIdentifier=Node-RED
#StandardOutput=syslog
[Install]
WantedBy=multi-user.target
today nothing is working
if i check the status it says this:
Code: Select all
● nodered.service - Node-RED graphical event wiring tool.
Loaded: loaded (/lib/systemd/system/nodered.service; enabled)
Active: failed (Result: start-limit) since gio 2017-11-16 16:51:53 CET; 3min 51s ago
Docs: http://nodered.org/docs/hardware/raspberrypi.html
Process: 16795 ExecStart=/usr/bin/env node-red-pi $NODE_OPTIONS $NODE_RED_OPTIONS (code=exited, status=9)
Main PID: 16795 (code=exited, status=9)
nov 16 16:51:53 pitre systemd[1]: Unit nodered.service entered failed state.
nov 16 16:51:53 pitre systemd[1]: nodered.service holdoff time over, scheduling restart.
nov 16 16:51:53 pitre systemd[1]: Stopping Node-RED graphical event wiring tool....
nov 16 16:51:53 pitre systemd[1]: Starting Node-RED graphical event wiring tool....
nov 16 16:51:53 pitre systemd[1]: nodered.service start request repeated too quickly, refusing to start.
nov 16 16:51:53 pitre systemd[1]: Failed to start Node-RED graphical event wiring tool..
nov 16 16:51:53 pitre systemd[1]: Unit nodered.service entered failed state.
but if i run manually /usr/bin/node-red-pi
it seems to work good
any help?
thanks