Skip to content

Instantly share code, notes, and snippets.

@agustik
Last active April 4, 2016 19:52
Show Gist options
  • Save agustik/a35e5d25b3488311cbf196a3a64f10e9 to your computer and use it in GitHub Desktop.
Save agustik/a35e5d25b3488311cbf196a3a64f10e9 to your computer and use it in GitHub Desktop.
Netdata Systemd
[Unit]
Description=netdata
After=network.target httpd.service squid.service nfs-server.service mysqld.service named.service postfix.service
[Service]
Type=forking
WorkingDirectory=/tmp
User=root
Group=root
PIDFile=/var/run/netdata/netdata.pid
ExecStart=/usr/sbin/netdata
ExecStop=/bin/kill -SIGTERM $MAINPID
TimeoutStopSec=30
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment