rpms/ganglia/FC-5 ganglia.spec,1.1,1.2
Jarod Wilson (jwilson)
fedora-extras-commits at redhat.com
Thu Nov 9 19:26:29 UTC 2006
- Previous message: rpms/beneath-a-steel-sky/devel beneath-a-steel-sky.desktop, NONE, 1.1 beneath-a-steel-sky.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message: owners owners.list,1.1913,1.1914
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jwilson
Update of /cvs/extras/rpms/ganglia/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19535
Modified Files:
ganglia.spec
Log Message:
- Both gmetad and gmond need to run as the ganglia user, but its quite often the case that only one or the other is installed on a system. Have both try to create the ganglia user -- if both try on the same system, the second should silently fail (bz #214762).
Index: ganglia.spec
===================================================================
RCS file: /cvs/extras/rpms/ganglia/FC-5/ganglia.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ganglia.spec 15 Jun 2006 20:15:48 -0000 1.1
+++ ganglia.spec 9 Nov 2006 19:25:58 -0000 1.2
@@ -1,6 +1,6 @@
Name: ganglia
Version: 3.0.3
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: Ganglia Distributed Monitoring System
Group: Applications/Internet
@@ -129,11 +129,20 @@
%clean
rm -rf $RPM_BUILD_ROOT
+### Both gmetad and gmond require user ganglia, but monitored
+### nodes only need gmond, servers only need gmetad... So have
+### both packages try to add the user (second one should just
+### fail silently).
%pre gmetad
# Add the "ganglia" user
/usr/sbin/useradd -c "Ganglia Monitoring System" \
-s /sbin/nologin -r -d %{_localstatedir}/lib/%{name} ganglia 2> /dev/null || :
+%pre gmond
+# Add the "ganglia" user
+/usr/sbin/useradd -c "Ganglia Monitoring System" \
+ -s /sbin/nologin -r -d %{_localstatedir}/lib/%{name} ganglia 2> /dev/null || :
+
%post gmond
/sbin/chkconfig --add gmond
@@ -204,6 +213,9 @@
%{_datadir}/%{name}
%changelog
+* Thu Nov 09 2006 Jarod Wilson <jwilson at redhat.com> 3.0.3-8
+- gmond also needs ganglia user (#214762)
+
* Tue Jun 13 2006 Jarod Wilson <jwilson at redhat.com> 3.0.3-7
- Clean up documentation
- Previous message: rpms/beneath-a-steel-sky/devel beneath-a-steel-sky.desktop, NONE, 1.1 beneath-a-steel-sky.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message: owners owners.list,1.1913,1.1914
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list