Sign in to follow this  
jagardaniel

Specify a configuration file as an argument when running a server

Recommended Posts

Posted (edited)

Hi!

This is a small suggestion that would be great for people that run multiple server instances on the same machine. Instead of always defaulting to "conf.json" when executing the server binary you should be able to specify a configuration file as an argument (optional).

# Default to conf.json
$ ./server

# Use server1.json as configuration file
$ ./server --config server1.json

This means that you don't have to keep same files on multiple places (without symlinks) and you would also be able to run multiple instances from the same systemd unit-file. I'm also sorry if this feature already exist in a way I'm not aware of or if it has been discussed before.

/Daniel

 

Edited by jagardaniel

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.