blob: 85459944db731012eb3dd6fc8538617dcb262737 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
[Unit]
Description=Revive unavailable songs for Netease Cloud Music (Golang)
Documentation=https://github.com/cnsilvan/UnblockNeteaseMusic
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
EnvironmentFile=/etc/UnblockNeteaseMusic.conf
WorkingDirectory=%S/UnblockNeteaseMusic
ExecStart=UnblockNeteaseMusic -l %L/UnblockNeteaseMusic.log $ARGS
# Sandboxing
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
PrivateDevices=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectControlGroups=yes
LockPersonality=yes
PrivateMounts=yes
TemporaryFileSystem=/etc
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
BindPaths=/var/log/UnblockNeteaseMusic.log
BindPaths=/var/lib/UnblockNeteaseMusic
BindPaths=/etc/hosts
[Install]
WantedBy=multi-user.target
|