bitbot icon indicating copy to clipboard operation
bitbot copied to clipboard

[Feature request] Add an option to bitbot to be started as a daemon

Open TehPeGaSuS opened this issue 5 years ago • 1 comments

Currently, using ./bitbotd launches bitbot in foreground. Would be nice to have an option to launch it as a daemon.

Advantages:

  1. No need to rely on systemd to have the bot to run in the background.
  2. Any user would be able to use the daemon option since in order to use the user systemd feature, at least in Ubuntu/Debian, said user need to have lingering enabled.
  3. We could then add an option to bitbotcl like ./bitbotctl restart/reload/stop PID

IMHO, this would benefit lots of users, since we could manage the bot without the need to ask administrators for special permissions.

Cheers

TehPeGaSuS avatar Dec 06 '19 17:12 TehPeGaSuS

note about the PID part - bitbotctl already does magic using unix domain sockets in a predictable place and it seems to work well - we needn't worry about that part I believe.

jesopo avatar Dec 06 '19 18:12 jesopo