Giter Club home page Giter Club logo

Comments (11)

duck57 avatar duck57 commented on September 9, 2024

I'm not sure how I got it working last night, using teleirc & isn't working today, and neither is prefixing that with nohup. Will go poke around some more until it works.

from teleirc.

duck57 avatar duck57 commented on September 9, 2024

The command nohup teleirc 2> /dev/null & seemed to do the trick! I'm not sure if the nohup is strictly necessary or not, but sending the output to /dev/null seems to make the bot stay connected when someone sends a message and the terminal session is closed.

from teleirc.

Mikaela avatar Mikaela commented on September 9, 2024

Why not just run it within tmux or screen?

from teleirc.

duck57 avatar duck57 commented on September 9, 2024

Why not just run it within tmux or screen?

I think I figured out what was causing my issues. I did use tmux the first time I solved this issue. However, I had forgotten that I detached with d instead of killed the pane with x, so it didn't work the next time I tried with tmux. I'm not familiar with screen, but I'll look into it.

Putting a note to send the output to /dev/null or to use tmux or screen (and detach from, not kill, the pane) in the optional part of the quickstart section is my preferred solution. Does that sound reasonable?

from teleirc.

ImTheDeveloper avatar ImTheDeveloper commented on September 9, 2024

I recommend running node applications through pm2 personally

from teleirc.

FruitieX avatar FruitieX commented on September 9, 2024

I've been running it as a systemd unit myself. We should investigate a solution that works for everyone and document that in the README. What do you people think of foreverjs for example, could we recommend usage of this one officially?

from teleirc.

 avatar commented on September 9, 2024

I always had issues with nohup
personally I just background it and send it to init
node teleirc.js >/dev/null & disown
then I usually make a pidfile so I can SIGTERM it later,
echo $! >teleirc.pid

from teleirc.

ImTheDeveloper avatar ImTheDeveloper commented on September 9, 2024

http://devo.ps/blog/goodbye-node-forever-hello-pm2/ good comparison here

from teleirc.

FruitieX avatar FruitieX commented on September 9, 2024

Thanks, will consider this one

from teleirc.

Rat-S avatar Rat-S commented on September 9, 2024

I am not sure if I understand the issue correctly.

Anyway, I would highly recommend GNU screen or TMUX.

If some one doesn't want logs, they can run teleirc & and that should keep it going.

from teleirc.

dustwolf avatar dustwolf commented on September 9, 2024

At this point the documentation on how to start the bot with pm2 is wrong (there is no teleirc.js) and there is no indication how to do it right.

from teleirc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.