Menu

#5 Files in configureable directory

open
nobody
None
5
2002-10-18
2002-10-18
Anonymous
No

The lock, game and user state files, as well and most
other changeable files should be relocated into a
subdirectory.

Reason: If the bot is installed and run by the system
administrator (on Linux machines) as a system service,
the admin will want to keep all of the binaries and config
files owned by root, while the bot itself runs as an
unpriviledged user. To facilitate this, it should be
possible to instruct the bot to store its state files and
generally all output it creates into a subdirectory. This
this facilitates setup for the admin, as he'd only have to
create one subdirectory and chown it to the user the bot
will run as, while without this config option he will have
to run the bot as root to let it create its files before
switching over. (Touching and chowning the state files is
not possible. Currently, an existing but empty state file
will result in a seg fault.)

Discussion


Log in to post a comment.