--
http://nodered.org
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/_dcKHpmrKrQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
--
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
0 1 1 1 ? -1 Ss 0 0:00 init [2]
1 174 174 174 ? -1 Ss 0 0:00 udevd --daemon
174 287 174 174 ? -1 S 0 0:00 \_ udevd --daemon
174 325 174 174 ? -1 S 0 0:00 \_ udevd --daemon
1 1516 1515 1515 ? -1 S 0 0:00 /usr/sbin/ifplugd -i eth0 -q -f -u0 -d10 -w -I
1 1535 1534 1534 ? -1 S 0 0:00 /usr/sbin/ifplugd -i lo -q -f -u0 -d10 -w -I
1 1868 1868 1868 ? -1 Ss 0 0:00 /bin/sh /etc/init.d/rc 2
1868 1877 1868 1868 ? -1 SL 0 0:00 \_ startpar -p 4 -t 20 -T 3 -M start -P N -R 2
1877 2264 2264 1868 ? -1 S 0 0:00 \_ /bin/sh /etc/init.d/rc.local start
2264 2270 2264 1868 ? -1 S 0 0:00 \_ /bin/sh -e /etc/rc.local
2270 2272 2264 1868 ? -1 S 0 0:00 \_ /bin/bash /usr/bin/node-red-pi --max-old-space-size=128
2272 2282 2264 1868 ? -1 Sl 0 0:21 \_ node-red
1 1928 1928 1928 ? -1 Ss 65534 0:00 /usr/sbin/thd --daemon --triggers /etc/triggerhappy/triggers.d/ --socket /var/run/thd.socket --pidfile /var/run/th
1 1972 1894 1868 ? -1 Sl 0 0:00 /usr/sbin/rsyslogd -c5
1 2092 2092 2092 ? -1 Ss 0 0:00 /usr/sbin/cron
1 2105 2105 2105 ? -1 Ss 104 0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:107
1 2141 2141 2141 ? -1 Ss 102 0:00 /usr/bin/dbus-daemon --system
1 2162 2162 2162 ? -1 Ss 0 0:00 /usr/sbin/sshd
2162 2293 2293 2293 ? -1 Ss 0 0:00 \_ sshd: pi [priv]
2293 2307 2293 2293 ? -1 S 1000 0:00 | \_ sshd: pi@pts/0
2307 2308 2308 2308 pts/0 2327 Ss 1000 0:00 | \_ -bash
2308 2322 2322 2308 pts/0 2327 T 1000 0:00 | \_ top
2308 2327 2327 2308 pts/0 2327 R+ 1000 0:00 | \_ ps axjf
2162 2297 2297 2297 ? -1 Ss 0 0:00 \_ sshd: pi [priv]
2297 2305 2297 2297 ? -1 S 1000 0:00 \_ sshd: pi@notty
2305 2306 2306 2306 ? -1 Ss 1000 0:00 \_ /usr/lib/openssh/sftp-server
1 2189 2188 2188 ? -1 S 103 0:00 avahi-daemon: running [raspberrypi-2.local]
2189 2191 2188 2188 ? -1 S 103 0:00 \_ avahi-daemon: chroot helper
1 2213 2213 2213 ? -1 Ssl 0 0:03 PM2 v0.12.15: God Daemon
1 2262 2262 2262 ? -1 Ss 0 0:00 /sbin/dhcpcd
pi@raspberrypi ~ $ pm2 list
[PM2] Spawning PM2 daemon
[PM2] PM2 Successfully daemonized
+----------------------------------------------------------------------------+
¦ App name ¦ id ¦ mode ¦ pid ¦ status ¦ restart ¦ uptime ¦ memory ¦ watching ¦
+----------------------------------------------------------------------------+
Use `pm2 show <id|name>` to get more details about an app
pi@raspberrypi ~ $ ^C
pi@raspberrypi ~ $--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
pi@raspberrypi /etc $ nano rc.local
GNU nano 2.2.6 File: rc.local
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
/usr/bin/node-red-pi --max-old-space-size=128
exit 0pi@raspberrypi ~ $ pm2 startup
[PM2] You have to run this command as root. Execute the following command:
sudo env PATH=$PATH:/usr/bin pm2 startup linux -u pi
pi@raspberrypi ~ $ sudo env PATH=$PATH:/usr/bin pm2 startup linux -u pi
[PM2] Spawning PM2 daemon
[PM2] PM2 Successfully daemonized
[PM2] Generating system init script in /etc/init.d/pm2-init.sh
[PM2] Making script booting at startup...
[PM2] -linux- Using the command:
su -c "chmod +x /etc/init.d/pm2-init.sh && update-rc.d pm2-init.sh defaults"
update-rc.d: using dependency based boot sequencing
[PM2] Done.
su -c "chmod +x /etc/init.d/pm2-init.sh && update-rc.d pm2-init.sh defaults"sudo env PATH=$PATH:/usr/bin pm2 startup linux -u pi...
--
http://nodered.org
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/_dcKHpmrKrQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
Pm2 should now also support systems, but has to be configured slightly differently. I think you need
pm2 startup systemd
to configure it.. I haven't yet tried this. Can anyone confirm, provide feedback, etc ?
There appears to be a recent change in pm2, within the pm2-init.sh file it is pointing to the incorrect .pm2 file
If you edit the /etc/init.d/pm2-init.sh file and replace
export PM2_HOME="/root/.pm2"
to point at the correct directory,which in my case is:
export PM2_HOME="/home/myuser/.pm2"
save and reboot you should find it now works.
The other thing to remember is on startup pm2 restarts the apps that were previously running the last time the PM2 server was shutdown.
So it is important to go through the step of running
Guys, thank you. I can't try this out till later today, but I really appreciate the input. I'll report back asap.
Docs already updated :-)
Docs already updated :-)
--