Browse Source

packaging: add RuntimeDirectory to systemd service

Arsenović Arsen 4 years ago
parent
commit
ec4e8710f2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packaging/systemd/miniflux.service

+ 4 - 0
packaging/systemd/miniflux.service

@@ -55,6 +55,10 @@ RestrictRealtime=true
 # https://www.freedesktop.org/software/systemd/man/systemd.exec.html#ReadWritePaths=
 ReadWritePaths=/run
 
+# Create /run/miniflux as 0755, for the Unix socket.
+# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory=
+RuntimeDirectory=miniflux
+
 # Allow miniflux to bind to privileged ports
 # https://www.freedesktop.org/software/systemd/man/systemd.exec.html#AmbientCapabilities=
 AmbientCapabilities=CAP_NET_BIND_SERVICE