Closed webpigeon closed 8 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.
see c576903db406dec1cb43b510072c38093cea4767
This can also be closed (BotRunnable allows the bot to be used using jsvc or java -jar)
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