Hello community, here is the log from the commit of package collectd for openSUSE:Factory checked in at 2012-10-26 16:59:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/collectd (Old) and /work/SRC/openSUSE:Factory/.collectd.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "collectd", Maintainer is "[email protected]" Changes: -------- --- /work/SRC/openSUSE:Factory/collectd/collectd.changes 2012-08-04 13:06:36.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.collectd.new/collectd.changes 2012-10-26 16:59:34.000000000 +0200 @@ -1,0 +2,5 @@ +Mon Aug 27 21:39:32 UTC 2012 - [email protected] + +- Add systemd rules. + +------------------------------------------------------------------- New: ---- collectd.service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ collectd.spec ++++++ --- /var/tmp/diff_new_pack.zudACd/_old 2012-10-26 16:59:36.000000000 +0200 +++ /var/tmp/diff_new_pack.zudACd/_new 2012-10-26 16:59:36.000000000 +0200 @@ -131,6 +131,7 @@ # see https://bugzilla.novell.com/show_bug.cgi?id=388026 Source20: collectd-pthread.pc Source99: collectd-rpmlintrc +Source100: collectd.service Patch4: collectd-lib64.patch Patch7: collectd-fix-config.patch Patch9: collectd-version.patch @@ -262,6 +263,9 @@ %endif %if %suse_version >= 1210 %{perl_requires} +BuildRequires: systemd +%{?systemd_requires} +%define has_systemd 1 %endif # in case we'd like to split it later: Provides: collectd-perl = %{version}-%{release} @@ -789,16 +793,38 @@ This package is empty but depends on all collectd plugin subpackages. EOF +%if 0%{?has_systemd} +%__install -D -m0644 %{SOURCE100} %{buildroot}%{_unitdir}/collectd.service +%endif + %preun %stop_on_removal collectd +%if 0%{?has_systemd} +%service_del_preun %{name}.service +%endif + %postun %restart_on_update collectd %insserv_cleanup +%if 0%{?has_systemd} +%service_del_postun %{name}.service +%endif + +%pre + +%if 0%{?has_systemd} +%service_add_pre %{name}.service +%endif + %post %{fillup_only collectd} +%if 0%{?has_systemd} +%service_add_post %{name}.service +%endif + %post -n libcollectdclient0 -p /sbin/ldconfig %postun -n libcollectdclient0 -p /sbin/ldconfig @@ -844,6 +870,9 @@ %dir %{_localstatedir}/lib/collectd /etc/init.d/collectd /usr/sbin/rccollectd +%if 0%{?has_systemd} +%{_unitdir}/collectd.service +%endif %files web %defattr(-,root,root) ++++++ collectd.service ++++++ [Unit] Description=System statistics collection daemon After=local-fs.target network.target Requires=local-fs.target network.target [Service] ExecStart=/usr/sbin/collectd -C /etc/collectd.conf -f Restart=always RestartSec=10 StandardOutput=syslog StandardError=syslog [Install] WantedBy=multi-user.target -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
