Ansible repo for digital ocean projects
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

mpdf.service.j2 1010 B

123456789101112131415161718192021222324252627282930313233343536373839
  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/mpdf{{ item }}.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