Ansible repo for digital ocean projects
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

40 linhas
999 B

  1. [Unit]
  2. Description=Music Player Daemon
  3. Documentation=man:mpd(1) man:mpd.conf(5)
  4. Documentation=file:///usr/share/doc/mpd/html/user.html
  5. After=network.target sound.target
  6. [Service]
  7. Type=notify
  8. EnvironmentFile=/etc/default/mpd
  9. ExecStart=/usr/bin/mpd --no-daemon /etc/mpd.conf
  10. # Enable this setting to ask systemd to watch over MPD, see
  11. # systemd.service(5). This is disabled by default because it causes
  12. # periodic wakeups which are unnecessary if MPD is not playing.
  13. #WatchdogSec=120
  14. # allow MPD to use real-time priority 40
  15. LimitRTPRIO=40
  16. LimitRTTIME=infinity
  17. # for io_uring
  18. LimitMEMLOCK=64M
  19. # disallow writing to /usr, /bin, /sbin, ...
  20. ProtectSystem=yes
  21. # more paranoid security settings
  22. NoNewPrivileges=yes
  23. ProtectKernelTunables=yes
  24. ProtectControlGroups=yes
  25. ProtectKernelModules=yes
  26. # AF_NETLINK is required by libsmbclient, or it will exit() .. *sigh*
  27. RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
  28. RestrictNamespaces=yes
  29. [Install]
  30. WantedBy=multi-user.target
  31. Also=mpd.socket