Просмотр исходного кода

Qdevice: Add sysconfig example

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Jan Friesse 9 лет назад
Родитель
Сommit
b415634f95
4 измененных файлов с 16 добавлено и 2 удалено
  1. 7 0
      corosync.spec.in
  2. 2 1
      init/Makefile.am
  3. 1 1
      init/corosync-qdevice.in
  4. 6 0
      init/corosync-qdevice.sysconfig.example

+ 7 - 0
corosync.spec.in

@@ -154,6 +154,12 @@ install -m 644 tools/corosync-notifyd.sysconfig.example \
 install -m 644 init/corosync.sysconfig.example \
    %{buildroot}%{_sysconfdir}/sysconfig/corosync
 
+%if %{with qdevices}
+# /etc/sysconfig/corosync-qdevice
+install -m 644 init/corosync-qdevice.sysconfig.example \
+   %{buildroot}%{_sysconfdir}/sysconfig/corosync-qdevice
+%endif
+
 %if %{with qnetd}
 # /etc/sysconfig/corosync-qnetd
 install -m 644 init/corosync-qnetd.sysconfig.example \
@@ -410,6 +416,7 @@ fi
 %{_sbindir}/corosync-qdevice
 %{_sbindir}/corosync-qdevice-net-certutil
 %{_sbindir}/corosync-qdevice-tool
+%config(noreplace) %{_sysconfdir}/sysconfig/corosync-qdevice
 %if %{with systemd}
 %{_unitdir}/corosync-qdevice.service
 %dir %{_datadir}/corosync

+ 2 - 1
init/Makefile.am

@@ -49,7 +49,8 @@ initscript_SCRIPTS  = corosync corosync-notifyd
 
 if BUILD_QDEVICES
 initscript_SCRIPTS  += corosync-qdevice
-EXTRA_DIST          += corosync-qdevice.in corosync-qdevice.service.in
+EXTRA_DIST          += corosync-qdevice.sysconfig.example corosync-qdevice.in \
+                       corosync-qdevice.service.in
 if INSTALL_SYSTEMD
 systemdconf_DATA   += corosync-qdevice.service
 endif

+ 1 - 1
init/corosync-qdevice.in

@@ -95,7 +95,7 @@ start()
 	if status $prog > /dev/null 2>&1; then
 		success
 	else
-		$prog $COROSYNC_QNETD_OPTIONS > /dev/null 2>&1
+		$prog $COROSYNC_QDEVICE_OPTIONS > /dev/null 2>&1
 
 		if [ "$?" != 0 ]; then
 			failure

+ 6 - 0
init/corosync-qdevice.sysconfig.example

@@ -0,0 +1,6 @@
+# Corosync Qdevice daemon init script configuration file
+
+# COROSYNC_QDEVICE_OPTIONS specifies options passed to corosync-qdevice command
+# (default is no options).
+# See "man corosync-qdevice" for detailed descriptions of the options.
+COROSYNC_QDEVICE_OPTIONS=""