2015-05-03 11:54:44 +00:00
|
|
|
[Unit]
|
|
|
|
|
Description=Minetest multiplayer server %i.conf server config
|
|
|
|
|
Documentation=man:minetestserver(6)
|
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
2021-10-29 05:23:14 +00:00
|
|
|
# added automatically, for details please see
|
|
|
|
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
|
|
|
ProtectSystem=full
|
|
|
|
|
ProtectHome=true
|
|
|
|
|
PrivateDevices=true
|
|
|
|
|
ProtectHostname=true
|
|
|
|
|
ProtectClock=true
|
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
|
ProtectKernelModules=true
|
|
|
|
|
ProtectKernelLogs=true
|
|
|
|
|
ProtectControlGroups=true
|
|
|
|
|
RestrictRealtime=true
|
|
|
|
|
# end of automatic additions
|
2015-05-03 11:54:44 +00:00
|
|
|
Restart=on-failure
|
|
|
|
|
User=minetest
|
|
|
|
|
Group=minetest
|
|
|
|
|
Type=simple
|
2023-12-21 07:42:01 +00:00
|
|
|
EnvironmentFile=/etc/minetest/%i.env
|
|
|
|
|
ExecStart=/usr/bin/minetestserver --config /etc/minetest/%i.conf --world /var/lib/minetest/%i/ $MINETEST_OPTIONS
|
2015-05-03 11:54:44 +00:00
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|