Blob Blame Raw
[Unit]
Description=Minetest multiplayer server w/ %i.conf server config
After=syslog.target network.target

[Service]
EnvironmentFile=/etc/sysconfig/minetest/%i.conf
User=minetest
Type=simple
ExecStart=/usr/bin/minetestserver --config /etc/minetest/%i.conf --port $PORT --map-dir /var/lib/minetest/%i/

[Install]
WantedBy=multi-user.target