Skip to content

[Feature Request] CLI switch for ini path #1400

Closed
@mtwango

Description

@mtwango

Add switch that would define, where ini files are. I would go with -S (settings) or -I (ini), since -C (as config) is taken.

I guess it would be defined in CServer::CommandLine, but it would have to be parsed elsewhere, before loading actual ini files. During CServerConfig::LoadIni and CServerConfig::LoadCryptIni it would check for input from switch or fallback to directory of sphereserver binary/excutable ./

This would help with windows service bug (the part with directory change could be removed, the path switch would be added as service parameter during creation) and it should enable placing config files on linux systems to /etc/ directory, where config files usually reside.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions