summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@gmail.com>2016-05-25 13:48:49 +0000
committerFederico Ceratto <federico.ceratto@gmail.com>2016-05-25 13:48:49 +0000
commit18f7eef7052ccdd516bfcfb80ed70d12c63f1272 (patch)
tree599a3074705b89a2ffeb6efadf08c766984f9cc6
parentFix postrm (diff)
downloadnetdata-18f7eef7052ccdd516bfcfb80ed70d12c63f1272.tar.xz
netdata-18f7eef7052ccdd516bfcfb80ed70d12c63f1272.zip
Move systemd service to simple
-rw-r--r--debian/netdata.service15
1 files changed, 5 insertions, 10 deletions
diff --git a/debian/netdata.service b/debian/netdata.service
index 59ca57546..c4f30e0bb 100644
--- a/debian/netdata.service
+++ b/debian/netdata.service
@@ -10,27 +10,22 @@ Wants=network-online.target
ConditionPathExists=/etc/netdata/netdata.conf
[Service]
-Type=forking
-#PIDFile=/run/netdata.pid
-PIDFile=/var/run/netdata/netdata.pid
+Type=simple
Environment="netdata_LOG_LOCATION=/var/log/netdata/log"
-ExecStart=/usr/sbin/netdata
+ExecStart=/usr/sbin/netdata -nd
ExecReload=/usr/sbin/netdata reload
-#ExecStop=/bin/kill -SIGTERM $MAINPID
-ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry=TERM/5/KILL/5 --pidfile /run/netdata.pid
-TimeoutStopSec=30
+TimeoutStopSec=10
KillMode=mixed
+KillSignal=SIGTERM
-EnvironmentFile=-/etc/default/%p
User=netdata
+Group=netdata
PermissionsStartOnly=true
Restart=on-abnormal
RestartSec=2s
LimitNOFILE=65536
WorkingDirectory=/tmp
-User=root
-Group=root
# Hardening
# AppArmorProfile=system_netdata