]> granicus.if.org Git - icinga2/commitdiff
Move the icinga2-prepare-dirs script to /usr/lib
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 27 Nov 2014 13:33:26 +0000 (14:33 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 27 Nov 2014 13:47:51 +0000 (14:47 +0100)
fixes #7786

doc/CMakeLists.txt
doc/icinga2-prepare-dirs.8 [deleted file]
etc/initsystem/CMakeLists.txt
etc/initsystem/icinga2.init.d.cmake
etc/initsystem/icinga2.service.cmake
etc/initsystem/prepare-dirs [moved from etc/initsystem/icinga2-prepare-dirs with 100% similarity]
icinga2.spec

index 7c8a8341b3680fb3a2b08b1813bda5ced298c0fc..cf209421f0614606ebb4bfbed24d852ae1a11523 100644 (file)
@@ -19,7 +19,7 @@ file(GLOB DOCSRCS "*.md")
 
 if(UNIX OR CYGWIN)
   install(
-    FILES icinga2.8 icinga2-prepare-dirs.8
+    FILES icinga2.8
     DESTINATION ${CMAKE_INSTALL_MANDIR}/man8
   )
 endif()
diff --git a/doc/icinga2-prepare-dirs.8 b/doc/icinga2-prepare-dirs.8
deleted file mode 100644 (file)
index 20104a9..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-.TH ICINGA2 "15" "June 2014" "icinga2 - The Icinga 2 network monitoring daemon." "System Administration Utilities"
-
-.SH NAME
-icinga2-prepare-dirs \- Prepare directories and their permissions for use by Icinga 2.
-
-.SH DESCRIPTION
-This script is used internally by the initscripts of Icinga 2 to prepare
-prepare directories and their permissions. This script is not intended to be called by users.
-
-.SH OPTIONS
-.TP
-\fB<sysconfig file>\fR
-Absolute path to the sysconfig file of Icinga 2.
-
-.SH AUTHOR
-Icinga2 is maintained by the Icinga Project <info@icinga.org>.
-
-.SH "REPORTING BUGS"
-Report bugs at <https://dev.icinga.org/>
-.br
-Icinga home page: <http://www.icinga.org/>
-
-.SH COPYRIGHT
-Copyright \(co 2012\-2014 Icinga Development Team (http://www.icinga.org)
-License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl2.html>
-.br
-This is free software: you are free to change and redistribute it.
-There is NO WARRANTY, to the extent permitted by law.
index 630c9f47498663998733ae05129b14cb6197952d..97341506a5ab50337ca834de7ca61d03fe0ddc47 100644 (file)
@@ -29,8 +29,8 @@ if(NOT WIN32)
   )
 
   install(
-    FILES icinga2-prepare-dirs
-    DESTINATION ${CMAKE_INSTALL_SBINDIR}
+    FILES prepare-dirs
+    DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/icinga2
     PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
   )
 
index c474193228d60b92f37efba42bf12d3ce0208c7a..5d4b991747db69f6e9e1964277a265b66d3bbaf1 100644 (file)
@@ -62,7 +62,7 @@ fi
 # Start Icinga 2
 start() {
        printf "Starting Icinga 2: "
-       @CMAKE_INSTALL_FULL_SBINDIR@/icinga2-prepare-dirs $SYSCONFIGFILE
+       @CMAKE_INSTALL_PREFIX@/lib/icinga2/prepare-dirs $SYSCONFIGFILE
 
        if ! $DAEMON daemon -c $ICINGA2_CONFIG_FILE -d -e $ICINGA2_ERROR_LOG > $ICINGA2_STARTUP_LOG 2>&1; then
                echo "Error starting Icinga. Check '$ICINGA2_STARTUP_LOG' for details."
index 512a9fec846cfe5ae186d10b30f1f2fbe1b83f8b..4f63805be15cdea94c0ae9ae455aa69f2fee226e 100644 (file)
@@ -5,7 +5,7 @@ After=syslog.target postgresql.service mariadb.service carbon-cache.service
 [Service]
 Type=forking
 EnvironmentFile=@ICINGA2_SYSCONFIGFILE@
-ExecStartPre=@CMAKE_INSTALL_FULL_SBINDIR@/icinga2-prepare-dirs @ICINGA2_SYSCONFIGFILE@
+ExecStartPre=@CMAKE_INSTALL_PREFIX@/lib/icinga2/prepare-dirs @ICINGA2_SYSCONFIGFILE@
 ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/icinga2 daemon -d -e ${ICINGA2_ERROR_LOG}
 PIDFile=@ICINGA2_RUNDIR@/icinga2/icinga2.pid
 ExecReload=/bin/kill -HUP $MAINPID
index de5ce67ad722eeaee4883ccabb61afe9e858a563..12b99123c790cdf36a93187fe5abeebacbe6e978 100644 (file)
@@ -485,8 +485,7 @@ exit 0
 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/repository.d/*
 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/zones.d/*
 %config(noreplace) %{_sysconfdir}/%{name}/scripts/*
-%{_sbindir}/%{name}-prepare-dirs
-%{_mandir}/man8/%{name}-prepare-dirs.8.gz
+/usr/lib/icinga2/prepare-dirs
 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}
 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}/perfdata
 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}/tmp