mirror of https://github.com/Icinga/icinga2.git
parent
9dfa3d22d4
commit
7ee0eef562
|
@ -19,7 +19,7 @@ file(GLOB DOCSRCS "*.md")
|
||||||
|
|
||||||
if(UNIX OR CYGWIN)
|
if(UNIX OR CYGWIN)
|
||||||
install(
|
install(
|
||||||
FILES icinga2.8 icinga2-prepare-dirs.8
|
FILES icinga2.8
|
||||||
DESTINATION ${CMAKE_INSTALL_MANDIR}/man8
|
DESTINATION ${CMAKE_INSTALL_MANDIR}/man8
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -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.
|
|
|
@ -29,8 +29,8 @@ if(NOT WIN32)
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install(
|
||||||
FILES icinga2-prepare-dirs
|
FILES prepare-dirs
|
||||||
DESTINATION ${CMAKE_INSTALL_SBINDIR}
|
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/icinga2
|
||||||
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ fi
|
||||||
# Start Icinga 2
|
# Start Icinga 2
|
||||||
start() {
|
start() {
|
||||||
printf "Starting Icinga 2: "
|
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
|
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."
|
echo "Error starting Icinga. Check '$ICINGA2_STARTUP_LOG' for details."
|
||||||
|
|
|
@ -5,7 +5,7 @@ After=syslog.target postgresql.service mariadb.service carbon-cache.service
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
EnvironmentFile=@ICINGA2_SYSCONFIGFILE@
|
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}
|
ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/icinga2 daemon -d -e ${ICINGA2_ERROR_LOG}
|
||||||
PIDFile=@ICINGA2_RUNDIR@/icinga2/icinga2.pid
|
PIDFile=@ICINGA2_RUNDIR@/icinga2/icinga2.pid
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
|
|
@ -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}/repository.d/*
|
||||||
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/zones.d/*
|
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/zones.d/*
|
||||||
%config(noreplace) %{_sysconfdir}/%{name}/scripts/*
|
%config(noreplace) %{_sysconfdir}/%{name}/scripts/*
|
||||||
%{_sbindir}/%{name}-prepare-dirs
|
/usr/lib/icinga2/prepare-dirs
|
||||||
%{_mandir}/man8/%{name}-prepare-dirs.8.gz
|
|
||||||
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}
|
%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}/perfdata
|
||||||
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}/tmp
|
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}/tmp
|
||||||
|
|
Loading…
Reference in New Issue