2020-11-10 00:06:38 -05:00
|
|
|
# Changing the systemd config can be done like this:
|
|
|
|
# 1) Edit the config file: vim /usr/lib/systemd/system/miniflux.service
|
|
|
|
# 2) Reload systemd: systemctl daemon-reload
|
|
|
|
# 3) Restart the process: systemctl restart miniflux
|
|
|
|
|
2020-10-18 19:12:00 -04:00
|
|
|
[Unit]
|
|
|
|
Description=Miniflux Feed Reader
|
|
|
|
After=network.target postgresql.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
EnvironmentFile=/etc/miniflux.conf
|
|
|
|
User=miniflux
|
|
|
|
ExecStart=/usr/bin/miniflux
|
|
|
|
Restart=always
|
|
|
|
|
2020-11-10 00:06:38 -05:00
|
|
|
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#NoNewPrivileges=
|
2020-10-18 19:12:00 -04:00
|
|
|
NoNewPrivileges=true
|
2020-11-10 00:06:38 -05:00
|
|
|
|
|
|
|
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#PrivateDevices=
|
2020-10-18 19:12:00 -04:00
|
|
|
PrivateDevices=true
|
2020-11-10 00:06:38 -05:00
|
|
|
|
|
|
|
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#ProtectControlGroups=
|
2020-10-18 19:12:00 -04:00
|
|
|
ProtectControlGroups=true
|
2020-11-10 00:06:38 -05:00
|
|
|
|
|
|
|
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#ProtectHome=
|
2020-10-18 19:12:00 -04:00
|
|
|
ProtectHome=true
|
2020-11-10 00:06:38 -05:00
|
|
|
|
|
|
|
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#ProtectKernelModules=
|
2020-10-18 19:12:00 -04:00
|
|
|
ProtectKernelModules=true
|
2020-11-10 00:06:38 -05:00
|
|
|
|
|
|
|
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#ProtectKernelTunables=
|
2020-10-18 19:12:00 -04:00
|
|
|
ProtectKernelTunables=true
|
2020-11-10 00:06:38 -05:00
|
|
|
|
|
|
|
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#ProtectSystem=
|
2020-10-18 19:12:00 -04:00
|
|
|
ProtectSystem=strict
|
2020-11-10 00:06:38 -05:00
|
|
|
|
|
|
|
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RestrictRealtime=
|
2020-10-18 19:12:00 -04:00
|
|
|
RestrictRealtime=true
|
|
|
|
|
2020-11-10 00:06:38 -05:00
|
|
|
# Keep at least the /run folder writeable if Miniflux is configured to use a Unix socket.
|
|
|
|
# For example, the socket could be LISTEN_ADDR=/run/miniflux/miniflux.sock
|
|
|
|
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#ReadWritePaths=
|
|
|
|
ReadWritePaths=/run
|
|
|
|
|
2020-10-18 19:12:00 -04:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|