Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Multiple bots on the same machine, is it possible? #51

Open
yuvalinc opened this issue May 10, 2020 · 1 comment
Open

Multiple bots on the same machine, is it possible? #51

yuvalinc opened this issue May 10, 2020 · 1 comment

Comments

@yuvalinc
Copy link

yuvalinc commented May 10, 2020

Hi @eljojo I'm looking for the easiest way to run several bots on the same machine,

Is it possible? if it does, can you show provide an example?

Really appreciate your hard work,
Thanks,
Yuval.

@Rubueno
Copy link

Rubueno commented Oct 13, 2020

Yes, it's possible to do. Run the bots with systemd. I run it like this:

[Unit]
Description=Botname Daemon
After=syslog.target network.target

[Service]
User=bot
Group=bot
Type=simple
WorkingDirectory=/path/to/bot
ExecStart=/usr/bin/bash -lc "bundle exec bot.rb"
Restart=always
RestartSec=2
TimeoutStopSec=20

[Install]
WantedBy=multi-user.target

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants