summaryrefslogtreecommitdiffstats
path: root/stash.service
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.net>2025-09-11 21:49:03 +0100
committerLeonardo Bishop <me@leonardobishop.net>2025-09-11 21:49:03 +0100
commitcc8524960dc415ceca957dcec2e2d424c514b621 (patch)
tree13e383abf57b8bf8d0b311662487b8f60c1fa58d /stash.service
Rename to stash
Diffstat (limited to 'stash.service')
-rw-r--r--stash.service33
1 files changed, 33 insertions, 0 deletions
diff --git a/stash.service b/stash.service
new file mode 100644
index 0000000..24a1727
--- /dev/null
+++ b/stash.service
@@ -0,0 +1,33 @@
+[Unit]
+Description=Saved articles tracker
+
+[Service]
+User=history
+Restart=always
+ExecStart=/usr/bin/history
+StateDirectory=history
+ConfigurationDirectory=history
+WorkingDirectory=/var/lib/history
+
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE
+AmbientCapabilities=CAP_NET_BIND_SERVICE
+NoNewPrivileges=true
+SystemCallFilter=@system-service
+SystemCallErrorNumber=EPERM
+
+ProtectSystem=strict
+ProtectHome=true
+PrivateTmp=true
+PrivateDevices=true
+ExecPaths=/usr/bin/history
+
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+ProtectClock=true
+RestrictRealtime=true
+RestrictSUIDSGID=true
+
+[Install]
+WantedBy=multi-user.target