bitbot
bitbot copied to clipboard
[Feature request] Add an option to bitbot to be started as a daemon
Currently, using ./bitbotd launches bitbot in foreground. Would be nice to have an option to launch it as a daemon.
Advantages:
- No need to rely on systemd to have the bot to run in the background.
- 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.
- 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
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.