Skip to content

Instantly share code, notes, and snippets.

@NicolaiSoeborg
Created June 29, 2024 12:46
Show Gist options
  • Save NicolaiSoeborg/f2e787e43a3ea777d47438d9c7b85965 to your computer and use it in GitHub Desktop.
Save NicolaiSoeborg/f2e787e43a3ea777d47438d9c7b85965 to your computer and use it in GitHub Desktop.

adduser --system mautrix-whatsapp --home /var/lib/coredns

/etc/systemd/system/coredns.service: [Unit] Description=CoreDNS DNS server Documentation=https://coredns.io After=network.target

[Service] PermissionsStartOnly=true LimitNOFILE=1048576 LimitNPROC=512 CapabilityBoundingSet=CAP_NET_BIND_SERVICE AmbientCapabilities=CAP_NET_BIND_SERVICE NoNewPrivileges=true User=coredns WorkingDirectory=/var/lib/coredns ExecStart=/usr/local/bin/coredns -conf=/etc/coredns/Corefile ExecReload=/bin/kill -SIGUSR1 $MAINPID Restart=on-failure StandardOutput=append:/var/log/coredns.log StandardError=append:/var/log/coredns.err.log

[Install] WantedBy=multi-user.target

wget ... mv coredns /usr/local/bin/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment