botgram / shell-bot

:robot: Telegram bot that executes commands and sends the live output
GNU General Public License v3.0
797 stars 488 forks source link

node.js don´t works in Systemd #3

Open jorengo opened 6 years ago

jorengo commented 6 years ago

Dear,

I'm trying to put the command online: node but it does not run in Systemd. How do I permanently place the botgram automatically in the memory of the ubuntu 16 server? Can someone help me ?

Best Regards.

mildsunrise commented 6 years ago

You're probably talking about the last section of the blog post (installing forever and putting the command in /etc/rc.local), and I assume you already have the bot working.

In that case, you're right, that last section doesn't work well with SystemD. Instead you should install and try PM2, but replace app.js with the full path to the server.js script.