summarylogtreecommitdiffstats
path: root/bashhub-server.service
diff options
context:
space:
mode:
Diffstat (limited to 'bashhub-server.service')
-rw-r--r--bashhub-server.service40
1 files changed, 40 insertions, 0 deletions
diff --git a/bashhub-server.service b/bashhub-server.service
new file mode 100644
index 000000000000..fd4787eceb03
--- /dev/null
+++ b/bashhub-server.service
@@ -0,0 +1,40 @@
+[Unit]
+Description=private cloud alternative for bashhub-client
+Requires=network.target
+
+[Service]
+Type=simple
+EnvironmentFile=/etc/default/%N
+User=bashhub-server
+ExecStart=/usr/bin/bashhub-server -a $ADDR --db $DB $REG
+Restart=on-failure
+BindPaths=/var/lib/%N
+CapabilityBoundingSet=
+RestrictAddressFamilies=AF_INET AF_INET6
+SystemCallArchitectures=native
+LockPersonality=yes
+MemoryDenyWriteExecute=yes
+NoNewPrivileges=yes
+PrivateDevices=yes
+PrivateTmp=yes
+PrivateUsers=yes
+ProtectClock=yes
+ProtectHostname=yes
+ProtectControlGroups=yes
+ProtectHome=yes
+ProtectKernelModules=yes
+ProtectKernelTunables=yes
+ProtectKernelLogs=yes
+ProtectProc=invisible
+ProtectSystem=strict
+RestrictNamespaces=yes
+RestrictSUIDSGID=true
+RestrictRealtime=yes
+RemoveIPC=yes
+SystemCallErrorNumber=EPERM
+#SystemCallFilter=@resources
+SystemCallFilter=@system-service
+UMask=0077
+
+[Install]
+WantedBy=multi-user.target