Open yuvalinc opened 4 years ago
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
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.