]> arthur.barton.de Git - netdata.git/blob - system/netdata.service.in
updated netdata.service to remove the pid file; fixes #773
[netdata.git] / system / netdata.service.in
1 [Unit]
2 Description=Real time performance monitoring
3 After=network.target httpd.service squid.service nfs-server.service mysqld.service named.service postfix.service
4
5 [Service]
6 Type=simple
7 WorkingDirectory=/tmp
8 User=netdata
9 Group=netdata
10 RuntimeDirectory=netdata
11 ExecStart=@sbindir_POST@/netdata -D
12
13 # -----------------------------------------------------------------------------
14 # Stopping netdata
15
16 KillMode=mixed
17 KillSignal=SIGTERM
18
19 # saving a big db on slow disks may need some time
20 TimeoutStopSec=60
21
22 # and disable SIGKILL - if sent during save, we will loose the db
23 SendSIGKILL=no
24
25 # -----------------------------------------------------------------------------
26 # Hardening netdata
27
28 # These will apply these capabilities to the entire netdata process tree
29 # We don't want this - only apps.plugin needs them
30 # AmbientCapabilities=CAP_DAC_READ_SEARCH CAP_SYS_PTRACE
31 # CapabilityBoundingSet=CAP_DAC_READ_SEARCH CAP_SYS_PTRACE
32
33 PrivateTmp=true
34 ProtectSystem=full
35 ProtectHome=read-only
36
37 # is implicitly set by the MemoryDenyWriteExecute=true
38 # NoNewPrivileges=true
39
40 # Do not enable - it makes node.js plugins to crash
41 # MemoryDenyWriteExecute=true
42
43 [Install]
44 WantedBy=multi-user.target