summaryrefslogtreecommitdiffstats
path: root/cn-fileserver.service
blob: 007585a47c76b255a2d1f9cb4b06134f0fca22a1 (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
[Unit]
Description=ContNet file server
After=network.target

[Service]
Type=simple
ExecStart=/usr/local/bin/cn-fileserver 0.0.0.0 /var/contnet/cnroot
PrivateTmp=yes
ProtectSystem=strict
ProtectHome=yes
InaccessibleDirectories=/home
ReadOnlyDirectories=/
CapabilityBoundingSet=
LimitFSIZE=0
DeviceAllow=/dev/null rw
MemoryDenyWriteExecute=yes
User=nobody
Group=nogroup
WorkingDirectory=/var/contnet/cnroot
Restart=always
RestartSec=10s

[Install]
WantedBy=multi-user.target