[packages/netdata] use systemd.service from upstream tarball

glen glen at pld-linux.org
Sun May 22 22:44:12 CEST 2016


commit f5dc427f6bf9c86b4cec99c5b94a6989ad93ff8a
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun May 22 23:43:50 2016 +0300

    use systemd.service from upstream tarball

 netdata.service | 16 ----------------
 netdata.spec    |  3 +--
 2 files changed, 1 insertion(+), 18 deletions(-)
---
diff --git a/netdata.spec b/netdata.spec
index 429cfdb..0d19617 100644
--- a/netdata.spec
+++ b/netdata.spec
@@ -12,7 +12,6 @@ Source0:	https://github.com/firehol/netdata/releases/download/v%{version}/%{name
 # Source0-md5:	c23fd94e899e8934c47b14151043be27
 Source1:	%{name}.conf
 Source2:	%{name}.init
-Source3:	%{name}.service
 Patch0:		nodejs.patch
 URL:		http://netdata.firehol.org/
 BuildRequires:	autoconf
@@ -114,7 +113,7 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{systemdunitdir}}
 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
 install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
-cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
+cp -p system/netdata.service $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
 
 %clean
 rm -rf $RPM_BUILD_ROOT
diff --git a/netdata.service b/netdata.service
deleted file mode 100644
index cb70209..0000000
--- a/netdata.service
+++ /dev/null
@@ -1,16 +0,0 @@
-[Unit]
-Description=Linux real time system monitoring, over the web
-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 -pidfile /var/run/netdata/netdata.pid
-ExecStop=/bin/kill -SIGTERM $MAINPID
-TimeoutStopSec=30
-
-[Install]
-WantedBy=multi-user.target
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/netdata.git/commitdiff/f5dc427f6bf9c86b4cec99c5b94a6989ad93ff8a



More information about the pld-cvs-commit mailing list