~ubuntu-branches/debian/experimental/minetest/experimental

« back to all changes in this revision

Viewing changes to debian/minetest-server.README.Debian

  • Committer: Package Import Robot
  • Author(s): Martin Quinson, Markus Koschany
  • Date: 2014-11-21 11:24:53 UTC
  • Revision ID: package-import@ubuntu.com-20141121112453-c09jjsgt3dh88n1p
Tags: 0.4.10+repack-3
* Team upload.

[ Markus Koschany ]
* minetest-server: Support systemd and SysV init systems. (Closes: #769965)
  - Add minetest-server.init.
  - Add minetest-server.postinst and minetest-server.postrm.
    Create an unprivileged system-wide user, Debian-minetest. The new home
    directory is /var/games/minetest-server. All log files are written to
    /var/log/minetest.
  - Add minetest-server@.service file. This is a template unit file which
    allows system administrators to run multiple instances of the server.
    See minetest-server.README.Debian for more information.
  - Add minetest-server.service to run the default configuration.
* Install minetestserver binary to /usr/lib/minetest.
* Add minetestserver wrapper script and install it to /usr/games.
* Install default configuration file to /etc/minetest/minetest.conf.
* Add minetest-server.logrotate and daily rotate log files in
  /var/log/minetest for 14 days.
* Declare compliance with Debian Policy 3.9.6.
* debian/control:
  - minetest-server: Depend on adduser for maintainer scripts.
  - minetest-dbg: Depend either on minetest OR minetest-server.
* Fix lintian error quilt-series-without-trailing-newline.
* Fix lintian warning empty-short-license-in-dep5-copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
minetest-server for Debian
 
2
==========================
 
3
 
 
4
Since version 0.4.10+repack-3 Debian supports running multiple Minetest servers.
 
5
An unprivileged system-wide user, Debian-minetest, controls the server.
 
6
 
 
7
    * The home directory of this user is /var/games/minetest-server.
 
8
    * All log files are written to /var/log/minetest.
 
9
    * The default server configuration is located at
 
10
      /etc/minetest/minetest.conf.
 
11
 
 
12
systemd (default init system)
 
13
=============================
 
14
 
 
15
Debian's Minetest server supports template units. You can start multiple
 
16
servers by specifying the name of your configuration files on the command-line.
 
17
 
 
18
    # This command will start the server with the default configuration,
 
19
    # /etc/minetest/minetest.conf
 
20
 
 
21
    systemctl start minetest-server@minetest.service
 
22
 
 
23
    # For running a second PvP server, you can create another configuration
 
24
    # file /etc/minetest/pvp.conf and then start the server with
 
25
 
 
26
    systemctl start minetest-server@pvp.service
 
27
 
 
28
The new log file will then be written to /var/log/minetest/pvp.log.
 
29
 
 
30
SysV
 
31
====
 
32
 
 
33
You can start the server with default minetest.conf configuration by using the
 
34
service command.
 
35
 
 
36
    service minetest-server start
 
37
 
 
38
and stop it with
 
39
 
 
40
    service minetest-server stop
 
41
 
 
42
To disable the init script use the facilities provided by your init system. For
 
43
instance, under sysvinit, use
 
44
 
 
45
    update-rc.d minetest-server disable
 
46
 
 
47
or under systemd, use
 
48
 
 
49
    systemctl disable minetest-server@minetest.service
 
50
 
 
51
 
 
52
 -- Markus Koschany <apo@gambaru.de>  Thu, 20 Nov 2014 17:41:39 +0100