[packages/ganeti] - added sysconfig file, dist example does not have all daemons

baggins baggins at pld-linux.org
Sat Nov 2 18:13:08 CET 2013


commit 612be331eaf42d132ccf97de54704e0c4fbe990c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Nov 2 18:12:48 2013 +0100

    - added sysconfig file, dist example does not have all daemons

 ganeti.spec      | 4 +++-
 ganeti.sysconfig | 7 +++++++
 2 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/ganeti.spec b/ganeti.spec
index f98c9ce..dc9bac6 100644
--- a/ganeti.spec
+++ b/ganeti.spec
@@ -13,6 +13,7 @@ Source4:	%{name}-noded.init
 Source5:	%{name}-rapi.init
 Source6:	%{name}-luxid.init
 Source7:	%{name}-mond.init
+Source8:	%{name}.sysconfig
 Patch0:		fix-no-kvm.patch
 Patch1:		systemd.patch
 Patch2:		daemon-util-use-service.patch
@@ -158,9 +159,10 @@ install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/ganeti-mond
 
 %{__sed} -i -e 's|@LIBDIR@|%{_libdir}|g' $RPM_BUILD_ROOT/etc/rc.d/init.d/ganeti-*
 
+cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/ganeti
+
 cp -p doc/examples/bash_completion $RPM_BUILD_ROOT/etc/bash_completion.d/ganeti
 cp -p doc/examples/ganeti.cron $RPM_BUILD_ROOT/etc/cron.d/ganeti
-cp -p doc/examples/ganeti.default $RPM_BUILD_ROOT/etc/sysconfig/ganeti
 cp -p doc/examples/ganeti.target $RPM_BUILD_ROOT%{systemdunitdir}
 cp -p doc/examples/ganeti.target $RPM_BUILD_ROOT%{systemdunitdir}
 cp -p doc/examples/ganeti-{noded,masterd,rapi,confd,luxid,mond}.service $RPM_BUILD_ROOT%{systemdunitdir}
diff --git a/ganeti.sysconfig b/ganeti.sysconfig
new file mode 100644
index 0000000..03123c0
--- /dev/null
+++ b/ganeti.sysconfig
@@ -0,0 +1,7 @@
+# Default arguments for Ganeti daemons
+NODED_ARGS=""
+MASTERD_ARGS=""
+RAPI_ARGS=""
+CONFD_ARGS=""
+LUXID_ARGS=""
+MOND_ARGS=""
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ganeti.git/commitdiff/612be331eaf42d132ccf97de54704e0c4fbe990c



More information about the pld-cvs-commit mailing list