From 91469fdebf57ff683cc2a7d9373cdee554ed3aba Mon Sep 17 00:00:00 2001 From: clsr Date: Fri, 18 Aug 2017 13:47:07 +0200 Subject: Initial commit --- cn-fileserver.service | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 cn-fileserver.service (limited to 'cn-fileserver.service') 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 -- cgit