Comments (11)
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.
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.
Why not just run it within tmux or screen?
from teleirc.
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.
I recommend running node applications through pm2 personally
from teleirc.
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.
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.
http://devo.ps/blog/goodbye-node-forever-hello-pm2/ good comparison here
from teleirc.
Thanks, will consider this one
from teleirc.
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.
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)
- Telegram codeblocks should go into pastebin and teleirc might take care of it like images or stickers HOT 5
- Only oneway HOT 3
- "not found in config" errors after upgrade HOT 9
- TypeScript "rewrite"
- Social card for this repo heads to 404 error HOT 1
- Say something when files are uploaded even if mediaupload is disabled
- Optionally give IRC users Telegram links for stickers and files. HOT 2
- Infinite no chat_id set when group is created and updated to supergroup before enabling private message handling HOT 2
- Add support for CertFP
- SASL plain fails HOT 7
- Current irc framework does not handle rejoins
- IPFS support for file uploads
- "left_chat_participant", "new_chat_participant" and "new_chat_photo" messages should be disabled when config.soloUse is active
- "error: channel <channel> not found in config!" needs a more verbose log level
- teleirc might spam IRC channels with error messages
- use XDG_CONFIG_HOME
- Just show image url and don't serve the image HOT 2
- teleirc not relaying messages from other Telegram bots to IRC HOT 2
- Meta: is the Telegram group relayed to freenode #teleirc ?
- Is teleirc maintained? Should the repository point to matterbridge instead and be archived? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teleirc.