2014-01-21 21:01:24 +00:00
|
|
|
[Unit]
|
|
|
|
Description=ympd server daemon
|
|
|
|
Requires=network.target local-fs.target
|
|
|
|
|
|
|
|
[Service]
|
2019-03-10 16:43:39 +00:00
|
|
|
User=ympd
|
|
|
|
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 17:45:40 +00:00
|
|
|
Environment=MPD_HOST=localhost
|
|
|
|
Environment=MPD_PORT=6600
|
2017-02-18 17:00:28 +00:00
|
|
|
Environment=MPD_PASSWORD=
|
2014-04-12 17:45:40 +00:00
|
|
|
Environment=WEB_PORT=8080
|
2015-05-01 21:11:15 +00:00
|
|
|
Environment=YMPD_USER=nobody
|
2016-09-11 15:54:25 +00:00
|
|
|
Environment=DIRBLE_API_TOKEN=2e223c9909593b94fc6577361a
|
2015-05-01 21:11:15 +00:00
|
|
|
EnvironmentFile=/etc/default/ympd
|
2018-03-05 11:54:46 +00:00
|
|
|
ExecStart=/usr/bin/ympd --user $YMPD_USER --mpdpass "$MPD_PASSWORD" --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT --dirbletoken $DIRBLE_API_TOKEN
|
2014-01-21 21:01:24 +00:00
|
|
|
Type=simple
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|