[Unit] Description=PM2 next gen process manager for Node.js After=network.target remote-fs.target [Service] Type=forking User=pi ExecStart=/usr/local/lib/node_modules/pm2/bin/pm2 resurrect ExecReload=/usr/local/lib/node_modules/pm2/bin/pm2 reload all ExecStop=/usr/local/lib/node_modules/pm2/bin/pm2 dump ExecStop=/usr/local/lib/node_modules/pm2/bin/pm2 delete all ExecStop=/usr/local/lib/node_modules/pm2/bin/pm2 kill [Install] WantedBy=multi-user.target