Greg Padgett has uploaded a new change for review.

Change subject: tools: error in engine-notifierd init script
......................................................................

tools: error in engine-notifierd init script

A 'permission denied' error was being printed by `find` if the init
script was executed in a directory that the 'ovirt' user did not have
permission to access.  Prevent this error by changing to the ovirt home
directory before starting the daemon.

Change-Id: I83622cbb8b39ea5792907e6efc68d824ca4b02da
Bug-Url: https://bugzilla.redhat.com/bz885446
Signed-off-by: Greg Padgett <[email protected]>
---
M 
backend/manager/tools/engine-notifier/engine-notifier-resources/src/main/resources/engine-notifierd
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/21/11821/1

diff --git 
a/backend/manager/tools/engine-notifier/engine-notifier-resources/src/main/resources/engine-notifierd
 
b/backend/manager/tools/engine-notifier/engine-notifier-resources/src/main/resources/engine-notifierd
index e8f20e3..c453ceb 100755
--- 
a/backend/manager/tools/engine-notifier/engine-notifier-resources/src/main/resources/engine-notifierd
+++ 
b/backend/manager/tools/engine-notifier/engine-notifier-resources/src/main/resources/engine-notifierd
@@ -23,6 +23,8 @@
 # Path to the engine-notifier launch script
 NOTIFIER_SCRIPT=/usr/share/ovirt-engine/bin/engine-notifier.sh
 
+cd $(getent passwd $ENGINE_USER | cut -d: -f6)
+
 if [ -z "$SHUTDOWN_WAIT" ]; then
     SHUTDOWN_WAIT=10
 fi


--
To view, visit http://gerrit.ovirt.org/11821
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I83622cbb8b39ea5792907e6efc68d824ca4b02da
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Greg Padgett <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to