summaryrefslogtreecommitdiffstats
path: root/cn-fileserver.service
diff options
context:
space:
mode:
authorclsr <clsr@clsr.net>2017-08-18 13:47:07 +0200
committerclsr <clsr@clsr.net>2017-08-18 13:47:07 +0200
commit91469fdebf57ff683cc2a7d9373cdee554ed3aba (patch)
tree1944f2a2e450127f2404b0bef4bf75c8169a8bc5 /cn-fileserver.service
downloadcn-fileserver-91469fdebf57ff683cc2a7d9373cdee554ed3aba.tar.gz
cn-fileserver-91469fdebf57ff683cc2a7d9373cdee554ed3aba.zip
Initial commitv0.1.0
Diffstat (limited to 'cn-fileserver.service')
-rw-r--r--cn-fileserver.service24
1 files changed, 24 insertions, 0 deletions
diff --git a/cn-fileserver.service b/cn-fileserver.service
new file mode 100644
index 0000000..007585a
--- /dev/null
+++ b/cn-fileserver.service
@@ -0,0 +1,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