2014-01-21 16:01:24 -05:00
|
|
|
[Unit]
|
|
|
|
Description=ympd server daemon
|
|
|
|
Requires=network.target local-fs.target
|
|
|
|
|
|
|
|
[Service]
|
2019-04-22 11:47:22 +02:00
|
|
|
User=nobody
|
2019-03-10 16:43:39 +00:00
|
|
|
DynamicUser=yes
|
|
|
|
MountAPIVFS=yes
|
|
|
|
RemoveIPC=yes
|
|
|
|
CapabilityBoundingSet=
|
|
|
|
LockPersonality=yes
|
|
|
|
PrivateUsers=yes
|
|
|
|
PrivateTmp=yes
|
|
|
|
PrivateDevices=yes
|
|
|
|
ProtectSystem=strict
|
|
|
|
NoNewPrivileges=yes
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
RestrictRealtime=yes
|
|
|
|
RestrictNamespaces=yes
|
|
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
|
|
|
ProtectKernelTunables=yes
|
|
|
|
ProtectKernelModules=yes
|
|
|
|
ProtectControlGroups=yes
|
|
|
|
ProtectHome=yes
|
|
|
|
|
2014-04-12 19:45:40 +02:00
|
|
|
Environment=MPD_HOST=localhost
|
|
|
|
Environment=MPD_PORT=6600
|
2017-02-18 12:00:28 -05:00
|
|
|
Environment=MPD_PASSWORD=
|
2014-04-12 19:45:40 +02:00
|
|
|
Environment=WEB_PORT=8080
|
2015-05-01 17:11:15 -04:00
|
|
|
Environment=YMPD_USER=nobody
|
2016-09-11 17:54:25 +02:00
|
|
|
Environment=DIRBLE_API_TOKEN=2e223c9909593b94fc6577361a
|
2015-11-13 15:07:07 +01:00
|
|
|
Environment=DIGEST=
|
2018-03-25 13:45:16 +02:00
|
|
|
Environment=LOCALPORT=
|
2015-05-01 17:11:15 -04:00
|
|
|
EnvironmentFile=/etc/default/ympd
|
2019-04-22 11:53:24 +02:00
|
|
|
ExecStart=/usr/bin/ympd --user $USER --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT --dirbletoken $DIRBLE_API_TOKEN $DIGEST $LOCALPORT
|
2014-01-21 16:01:24 -05:00
|
|
|
Type=simple
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|