summarylogtreecommitdiffstats
path: root/trilium-server.service
diff options
context:
space:
mode:
Diffstat (limited to 'trilium-server.service')
-rw-r--r--trilium-server.service40
1 files changed, 0 insertions, 40 deletions
diff --git a/trilium-server.service b/trilium-server.service
deleted file mode 100644
index 2fdbc4617cca..000000000000
--- a/trilium-server.service
+++ /dev/null
@@ -1,40 +0,0 @@
-[Unit]
-Description=Trilium Notes server daemon
-After=syslog.target network.target
-
-[Service]
-User=triliumserver
-Group=triliumserver
-Type=simple
-Environment=TRILIUM_DATA_DIR=trilium-data/
-ExecStart=./trilium.sh
-WorkingDirectory=/opt/trilium-server
-
-# Security
-ProtectProc=invisible
-ProtectSystem=strict
-ReadWritePaths=/var/lib/trilium-server
-ProtectHome=yes
-PrivateTmp=yes
-PrivateDevices=yes
-PrivateIPC=yes
-PrivateUsers=yes
-ProtectHostname=yes
-ProtectClock=yes
-ProtectKernelTunables=yes
-ProtectKernelModules=yes
-ProtectKernelLogs=yes
-ProtectControlGroups=yes
-RestrictNamespaces=yes
-LockPersonality=yes
-RestrictSUIDSGID=yes
-RemoveIPC=yes
-NoNewPrivileges=yes
-SystemCallArchitectures=native
-
-TimeoutStopSec=20
-# KillMode=process leads to error, according to https://www.freedesktop.org/software/systemd/man/systemd.kill.html
-Restart=always
-
-[Install]
-WantedBy=multi-user.target \ No newline at end of file