Add mpd user service
This commit is contained in:
parent
35b44ad7ff
commit
b0ae8c1ce6
22
.config/systemd/user/mpd.service
Normal file
22
.config/systemd/user/mpd.service
Normal file
@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=Music Player Daemon
|
||||
Documentation=man:mpd(1) man:mpd.conf(5)
|
||||
After=network.target sound.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
ExecStart=/usr/bin/mpd --no-daemon
|
||||
LimitRTPRIO=40
|
||||
LimitRTTIME=infinity
|
||||
LimitMEMLOCK=64M
|
||||
|
||||
ProtectSystem=yes
|
||||
NoNewPrivileges=yes
|
||||
ProtectKernelTunables=yes
|
||||
ProtectControlGroups=yes
|
||||
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
|
||||
RestrictNamespaces=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
Reference in New Issue
Block a user