unitycoders / uc_pircbotx

A bot for #unity-coders using pircbotx
GNU General Public License v3.0
3 stars 2 forks source link

Allow the bot to be run as deamon #45

Closed webpigeon closed 8 years ago

webpigeon commented 10 years ago

Allow the bot to run as a Linux deamon, this will allow the bot to be controlled on a Linux server more easily (ie. kat).

This will probably help...

http://stackoverflow.com/questions/7687159/how-to-convert-a-java-program-to-daemon-with-jsvc

webpigeon commented 10 years ago

A systemd service is comparably easy to write, but to work correctly on Linux, it would be better if we could store the configuration and variable data in the correct places (share, etc, var). This will require that the owner is capable of specifying the configuration file as a command line argument.

The best way to load the database file location is from the configuration file, as this will avoid having to care too much about the command line processing.

webpigeon commented 10 years ago

see c576903db406dec1cb43b510072c38093cea4767

webpigeon commented 8 years ago

This can also be closed (BotRunnable allows the bot to be used using jsvc or java -jar)