瀏覽代碼

CentOS 6 change

John C. Frickson 9 年之前
父節點
當前提交
f3353b96c1
共有 2 個文件被更改,包括 10 次插入2 次删除
  1. 5 1
      build-aux/ax_nagios_get_files
  2. 5 1
      configure

+ 5 - 1
build-aux/ax_nagios_get_files

@@ -79,7 +79,11 @@ AS_CASE([$init_type],
 		src_inetd="solaris-PKG_NAME.xml",
 
 	[upstart],
-		src_init=upstart-init,
+		if test $dist_type = rh ; then
+			src_init=rh-upstart-init
+		else
+			src_init=upstart-init
+		fi,
 
 	[launchd],
 		src_init="mac-org.nagios.PKG_NAME.plist"

+ 5 - 1
configure

@@ -3815,7 +3815,11 @@ case $init_type in #(
     src_init="solaris-PKG_NAME.xml"
 		src_inetd="solaris-PKG_NAME.xml" ;; #(
   upstart) :
-    src_init=upstart-init ;; #(
+    if test $dist_type = rh ; then
+			src_init=rh-upstart-init
+		else
+			src_init=upstart-init
+		fi ;; #(
   launchd) :
     src_init="mac-org.nagios.PKG_NAME.plist"
 		src_inetd="mac-org.nagios.PKG_NAME.plist" ;; #(