0
0
mirror of https://github.com/mumble-voip/mumble.git synced 2024-11-23 07:57:38 +00:00
mumble-voip_mumble/auxiliary_files/config_files/mumble-server.service.in
Robert Adam cd068fe3ee MAINT: Improve mumble-server.service
This essentially copied the file from
ba167269f8/trunk/murmur.service
and only adapted it in as far as that it uses the actual install paths.
2022-09-10 17:28:34 +02:00

37 lines
865 B
SYSTEMD

[Unit]
Description=Mumble server
After=network.target
Wants=network-online.target
[Service]
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
ExecStart=@MUMBLE_INSTALL_ABS_EXECUTABLEDIR@/@MUMBLE_SERVER_BINARY_NAME@ -ini @MUMBLE_INSTALL_ABS_SYSCONFDIR@/mumble-server.ini -fg
Group=_mumble-server
LockPersonality=yes
MemoryDenyWriteExecute=yes
NoNewPrivileges=yes
PrivateDevices=true
PrivateTmp=true
ProtectClock=yes
ProtectControlGroups=yes
ProtectHome=true
ProtectHostname=yes
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectSystem=full
RestrictAddressFamilies=~AF_PACKET AF_NETLINK
RestrictNamespaces=yes
RestrictSUIDSGID=yes
RestrictRealtime=yes
Restart=always
SystemCallArchitectures=native
SystemCallFilter=@system-service
Type=simple
User=_mumble-server
[Install]
WantedBy=multi-user.target