[Unit] Description=MediaMTX multi-protocol media server and streaming proxy Wants=network.target After=network.target [Service] Type=simple ExecStart=/usr/bin/mediamtx /etc/mediamtx/mediamtx.yml User=mediamtx Group=mediamtx WorkingDirectory=/var/lib/mediamtx NoNewPrivileges=true ProtectSystem=full ProtectHome=tmpfs StateDirectory=mediamtx ConfigurationDirectory=mediamtx LogsDirectory=mediamtx ProtectClock=true ProtectKernelLogs=true SystemCallFilter=@system-service [Install] WantedBy=multi-user.target