Follow-up Comment #2, bug #22980 (project freeciv):

Thanks for the information. 

However I believe it would be beneficial for Freeciv when dedicated servers
were treated the same way as the most common use cases and it would help to
provide init scripts or systemd service files as examples at least. 

I think two things are needed to simplify hosting and maintenance of such a
server. Starting Freeciv as a service and using one (or multiple) global
configuration file(s) instead of pure command-line options.

Just to understand my trail of thought here: I have recently set up a
dedicated Freeciv 2.4.3 Debian server for my gaming project, linuxiuvat.de.
Although the command line usage is well documented, I feel that a global
configuration file, preferably installed to
/etc/freeciv/freeciv-dedicated.conf and a service file would make it far
easier for a sysadmin to maintain the server. I thought about adding a service
file to the Debian package but since some server options are only available as
command-line options, this might be more complicated. Hence I opened this bug
report, so that someone could tell me if this is really something the
community needs or not.

I did something similar for minetest a few days ago. That's how a
[email protected] file might look like provided that all server options
could be read from a conf file. A server could then be started with

     systemctl start [email protected]

For multiple instances @freeciv has to be replaced with the name of the
configuration file in /etc/freeciv


[Unit]
Description=Freeciv dedicated server with %i.conf server config
Documentation=man:freeciv-server(6)
After=network.target

[Service]
User=Debian-freeciv
Group=games
ExecStart=/usr/lib/freeciv/freeciv-server --config /etc/freeciv/%i.conf 

[Install]
WantedBy=multi-user.target




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?22980>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to