blob: 2694ef264066c1a3bbfb72dabadb7eddcf17336b (
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
31
32
|
[Unit]
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=cloudreve
Restart=on-faliure
RestartSec=3
ExecStartPre=cp /usr/lib/cloudreve/cloudreve /var/lib/cloudreve/cr
ExecStart=/var/lib/cloudreve/cr -c /etc/cloudreve/config.ini
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
WorkingDirectory=/var/lib/cloudreve
RuntimeDirectory=cloudreve
ProtectHome=true
ProtectSystem=strict
ReadWritePaths=/etc/cloudreve
ReadWritePaths=/var/lib/cloudreve
NoNewPrivileges=true
ProtectKernelTunables=true
ProtectKernelLogs=true
ProtectControlGroups=true
MemoryDenyWriteExecute=true
ProtectClock=true
RestrictRealtime=true
PrivateDevices=true
PrivateTmp=true
ProtectHostname=true
[Install]
WantedBy=multi-user.target
|