[icinga-checkins] icinga.org: icinga-core/hbaecker/ssl: delete 'su' usage in init script

git at icinga.org git at icinga.org
Fri Oct 9 18:44:15 CEST 2009


Module: icinga-core
Branch: hbaecker/ssl
Commit: 3605e259620e931d3c337c261196b754a0a5163a
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=3605e259620e931d3c337c261196b754a0a5163a

Author: Hendrik Baecker <andurin at process-zero.de>
Date:   Wed Oct  7 21:41:27 2009 +0200

delete 'su' usage in init script

IssueID #133

---

 Changelog      |    1 +
 daemon-init.in |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Changelog b/Changelog
index 86c0ae9..d7d6f77 100644
--- a/Changelog
+++ b/Changelog
@@ -4,6 +4,7 @@ Icinga 0.8.x Change Log
 
 0.?.? - ??/??/2009
 * idoutils: workaround to handle more than 4k Data which may exceed service outputs incl. long perf_data
+* core init: delete 'su' usage since all previously su touched files were created by the icinga user
 
 0.8.4 - 09/15/2009
 * idoutils: fix failure_prediction_options in tables hosts, services for postgres
diff --git a/daemon-init.in b/daemon-init.in
index 272728c..837f64b 100644
--- a/daemon-init.in
+++ b/daemon-init.in
@@ -132,7 +132,6 @@ case "$1" in
 		echo -n "Starting icinga:"
 		$IcingaBin -v $IcingaCfgFile > /dev/null 2>&1;
 		if [ $? -eq 0 ]; then
-			su - $IcingaUser -c "touch $IcingaVarDir/icinga.log $IcingaRetentionFile"
 			rm -f $IcingaCommandFile
 			touch $IcingaRunFile
 			chown $IcingaUser:$IcingaGroup $IcingaRunFile





More information about the icinga-checkins mailing list