Sign in to follow this  

Specify a configuration file as an argument when running a server

Recommended Posts

Posted (edited)


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.



Edited by jagardaniel

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.