* [gentoo-commits] gentoo-x86 commit in net-analyzer/icinga2/files: icinga2-2.1.0-create_var_cache.patch
@ 2014-09-01 21:03 Matt Thode (prometheanfire)
0 siblings, 0 replies; only message in thread
From: Matt Thode (prometheanfire) @ 2014-09-01 21:03 UTC (permalink / raw
To: gentoo-commits
prometheanfire 14/09/01 21:03:51
Added: icinga2-2.1.0-create_var_cache.patch
Log:
another bump from feandil
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)
Revision Changes Path
1.1 net-analyzer/icinga2/files/icinga2-2.1.0-create_var_cache.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/files/icinga2-2.1.0-create_var_cache.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/files/icinga2-2.1.0-create_var_cache.patch?rev=1.1&content-type=text/plain
Index: icinga2-2.1.0-create_var_cache.patch
===================================================================
--- a/etc/initsystem/icinga2-prepare-dirs
+++ b/etc/initsystem/icinga2-prepare-dirs
@@ -31,3 +31,7 @@
mkdir -p $ICINGA2_RUN_DIR/icinga2/cmd
chown $ICINGA2_USER:$ICINGA2_COMMAND_GROUP $ICINGA2_RUN_DIR/icinga2/cmd
chmod 2750 $ICINGA2_RUN_DIR/icinga2/cmd
+
+mkdir -p $ICINGA2_STATE_DIR/cache/icinga2
+chown $ICINGA2_USER:$ICINGA2_COMMAND_GROUP $ICINGA2_STATE_DIR/cache/icinga2
+chmod 750 $ICINGA2_STATE_DIR/cache/icinga2
--- a/etc/initsystem/icinga2.init.d.cmake
+++ b/etc/initsystem/icinga2.init.d.cmake
@@ -46,7 +46,6 @@
# Start Icinga 2
start() {
printf "Starting Icinga 2: "
- @CMAKE_INSTALL_FULL_SBINDIR@/icinga2-prepare-dirs $SYSCONFIGFILE
if ! $DAEMON -c $ICINGA2_CONFIG_FILE -d -e $ICINGA2_ERROR_LOG -u $ICINGA2_USER -g $ICINGA2_GROUP > $ICINGA2_STARTUP_LOG 2>&1; then
echo "Error starting Icinga. Check '$ICINGA2_STARTUP_LOG' for details."
@@ -105,6 +106,7 @@
# Check the Icinga 2 configuration
checkconfig() {
printf "Checking configuration: "
+ @CMAKE_INSTALL_FULL_SBINDIR@/icinga2-prepare-dirs $SYSCONFIGFILE
if ! $DAEMON -c $ICINGA2_CONFIG_FILE -C -u $ICINGA2_USER -g $ICINGA2_GROUP > $ICINGA2_STARTUP_LOG 2>&1; then
if [ "x$1" = "x" ]; then
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-09-01 21:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-01 21:03 [gentoo-commits] gentoo-x86 commit in net-analyzer/icinga2/files: icinga2-2.1.0-create_var_cache.patch Matt Thode (prometheanfire)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox