summaryrefslogtreecommitdiffstats
path: root/system/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'system/systemd')
-rw-r--r--system/systemd/netdata.service.in5
-rw-r--r--system/systemd/netdata.service.v235.in3
2 files changed, 6 insertions, 2 deletions
diff --git a/system/systemd/netdata.service.in b/system/systemd/netdata.service.in
index afdac114c..7d15dad77 100644
--- a/system/systemd/netdata.service.in
+++ b/system/systemd/netdata.service.in
@@ -3,9 +3,10 @@
Description=Real time performance monitoring
# append here other services you want netdata to wait for them to start
-After=network.target httpd.service squid.service nfs-server.service mysqld.service mysql.service named.service postfix.service chronyd.service
+After=network.target
[Service]
+LogNamespace=netdata
Type=simple
User=root
RuntimeDirectory=netdata
@@ -61,6 +62,8 @@ CapabilityBoundingSet=CAP_NET_ADMIN
CapabilityBoundingSet=CAP_SETGID CAP_SETUID
# is required to change file ownership
CapabilityBoundingSet=CAP_CHOWN
+# is required for logs-management.plugin
+CapabilityBoundingSet=CAP_SYSLOG
# Sandboxing
ProtectSystem=full
diff --git a/system/systemd/netdata.service.v235.in b/system/systemd/netdata.service.v235.in
index be5de4e36..06f03b269 100644
--- a/system/systemd/netdata.service.v235.in
+++ b/system/systemd/netdata.service.v235.in
@@ -3,9 +3,10 @@
Description=Real time performance monitoring
# append here other services you want netdata to wait for them to start
-After=network.target httpd.service squid.service nfs-server.service mysqld.service mysql.service named.service postfix.service chronyd.service
+After=network.target
[Service]
+LogNamespace=netdata
Type=simple
User=root
EnvironmentFile=-/etc/default/netdata