From 1ff617f4997234c296f83503c3e483b51edf21cb Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 22 May 2021 08:55:19 +0200 Subject: [PATCH] Update systemd.service --- conf/systemd.service | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index f9cfccb..d8fa394 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -1,13 +1,26 @@ [Unit] -Description=Miniflux Service +Description=Miniflux Feed Reader Documentation=https://miniflux.app/docs/#database-connection-parameters +After=network.target postgresql.service [Service] +Type=notify User=__APP__ -#Group=__APP__ -ExecStart=__FINALPATH__/miniflux -config-file=__FINALPATH__/__APP__.conf +ExecStart=__FINALPATH__/miniflux -c __FINALPATH__/__APP__.conf EnvironmentFile=__FINALPATH__/__APP__.conf NonBlocking=true +Restart=always +NoNewPrivileges=true +PrivateDevices=true +ProtectControlGroups=true +ProtectHome=true +ProtectKernelModules=true +ProtectKernelTunables=true +ProtectSystem=strict +RestrictRealtime=true +ReadWritePaths=/run +AmbientCapabilities=CAP_NET_BIND_SERVICE +PrivateTmp=true [Install] WantedBy=multi-user.target