Read the statement by Michael Teeuw here.
(Solved) PM2 does not start on reboot
-
@amanzimdwini I have resolved it now as I posted a bug. Turns out it’s related to the timeout setting for the PM2 service. Developers are going to remove timeout in next release but for now it can be tweaked. And no, had no joy with screensaver either. Disabled it in GUI and it seems to be gone now.
https://github.com/Unitech/pm2/issues/2765#issuecomment-286778941
-
@xbmcnut Just read your post - now MY installation wont run PM2. Argh. Where do you change the timeout settings?
ps - Re: screensaver: I had to resort to’
sudo apt-get install xscreensaver
and the disable it.
-
@amanzimdwini said in (Solved) PM2 does not start on reboot:
Where do you change the timeout settings?
/etc/systemd/system/pm2-root.service
I changed mine from 8 to 15s using WinSCP with the SCP/Shell set to sudo su -
-
@xbmcnut took me a good 10 seconds to find pm2-pi.service for the raspberry
And another 5 to change it.YOU ARE A GENIUS!
thanks -
@xbmcnut Hello
total noob here and i have the same problem , how do i do that ?
ps : i’m not a developer or anything , i’m just a regular user so i kinda need step by step
thanks
-
@rmohsen Do you know how to access your mirror with either PuTTy or WinSCP?
-
@xbmcnut yes. Tried winscp but couldn’t edit the file , no permission
I managed to change it from 8 to 15 with another command on terminal but still not working
-
@rmohsen Apologies. My install has died over the weekend and MM will no longer run. Getting to Desktop login screen on reboot and that’s it even though I told it to auto login, the desktop will not start. Have popped in ‘too hard bin’ for the moment, sorry.
-
@xbmcnut :abcd:
where have you changed the Idle Time ???
Thats my pm2-root.service:
[Unit]
Description=PM2 process manager
Documentation=https://pm2.keymetrics.io/
After=network.target[Service]
Type=forking
User=root
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
Environment=PATH=/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
Environment=PM2_HOME=/root/.pm2
PIDFile=/root/.pm2/pm2.pidExecStart=/usr/lib/node_modules/pm2/bin/pm2 resurrect
ExecReload=/usr/lib/node_modules/pm2/bin/pm2 reload all
ExecStop=/usr/lib/node_modules/pm2/bin/pm2 kill[Install]
WantedBy=multi-user.targetGreetz Sandy2503
-
@Sandy2503 I believe in the latest version of PM2, this was removed.