Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
src/.settings/
src/TODO.txt
src/rrddim_file.c
+system/netdata.service
valgrind.log
valgrind2.log
web/chart-info/
--- /dev/null
+.in:
+ if sed \
+ -e 's#[@]localstatedir_POST@#$(localstatedir)#g' \
+ -e 's#[@]sbindir_POST@#$(sbindir)#g' \
+ $< > $@.tmp; then \
+ mv "$@.tmp" "$@"; \
+ else \
+ rm -f "$@.tmp"; \
+ false; \
+ fi
# Copyright (C) 2015 Alon Bar-Lev <alon.barlev@gmail.com>
#
MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
+CLEANFILES = \
+ netdata.service \
+ $(NULL)
+
+include $(top_srcdir)/build/subst.inc
+
+SUFFIXES = .in
+
+nodist_noinst_DATA = \
+ netdata.service \
+ $(NULL)
dist_noinst_DATA = \
netdata-openrc \
- netdata.service \
+ netdata.service.in \
$(NULL)
+++ /dev/null
-[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.pid
-ExecStart=/usr/sbin/netdata
-ExecStop=/bin/kill -SIGTERM $MAINPID
-TimeoutStopSec=30
-
-[Install]
-WantedBy=multi-user.target
--- /dev/null
+[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=@localstatedir_POST@/run/netdata.pid
+ExecStart=@sbindir_POST@/netdata
+ExecStop=/bin/kill -SIGTERM $MAINPID
+TimeoutStopSec=30
+
+[Install]
+WantedBy=multi-user.target