X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=system%2Fnetdata.service.in;h=6bbb84eb5faa3229ea5a78db828b89b6d03bc386;hb=b060bae83cc36fdc4f14120228e4c9b0d1ec42e8;hp=2f71735661f22ee95b2289e184cd85aa7ecb57e5;hpb=1dfe07df975a513a7761efe179425bfcd4804c71;p=netdata.git diff --git a/system/netdata.service.in b/system/netdata.service.in index 2f717356..6bbb84eb 100644 --- a/system/netdata.service.in +++ b/system/netdata.service.in @@ -1,47 +1,15 @@ [Unit] Description=Real time performance monitoring -After=network.target httpd.service squid.service nfs-server.service mysqld.service named.service postfix.service +After=network.target httpd.service squid.service nfs-server.service mysqld.service mysql.service named.service postfix.service [Service] Type=simple -WorkingDirectory=/tmp User=netdata Group=netdata -RuntimeDirectory=netdata -ExecStartPre=/bin/mkdir -p @localstatedir_POST@/run/netdata -ExecStartPre=/bin/chown -R netdata:netdata @localstatedir_POST@/run/netdata -ExecStartPre=/bin/chmod 0775 @localstatedir_POST@/run/netdata -ExecStart=@sbindir_POST@/netdata -D -P @localstatedir_POST@/run/netdata/netdata.pid - -# ----------------------------------------------------------------------------- -# Stopping netdata - -KillMode=mixed -KillSignal=SIGTERM +ExecStart=@sbindir_POST@/netdata -D # saving a big db on slow disks may need some time TimeoutStopSec=60 -# and disable SIGKILL - if sent during save, we will loose the db -SendSIGKILL=no - -# ----------------------------------------------------------------------------- -# Hardening netdata - -# These will apply these capabilities to the entire netdata process tree -# We don't want this - only apps.plugin needs them -# AmbientCapabilities=CAP_DAC_READ_SEARCH CAP_SYS_PTRACE -# CapabilityBoundingSet=CAP_DAC_READ_SEARCH CAP_SYS_PTRACE - -PrivateTmp=true -ProtectSystem=full -ProtectHome=read-only - -# is implicitly set by the MemoryDenyWriteExecute=true -# NoNewPrivileges=true - -# Do not enable - it makes node.js plugins to crash -# MemoryDenyWriteExecute=true - [Install] WantedBy=multi-user.target