Skip to content

Commit 137305e

Browse files
committed
Status now working
1 parent f9ab93a commit 137305e

File tree

2 files changed

+5
-185
lines changed

2 files changed

+5
-185
lines changed

Oracle Scripts/Informatica/informatica

Lines changed: 0 additions & 181 deletions
This file was deleted.

Oracle Scripts/Informatica/init.d/informatica

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ INFO_STOP_TIMEOUT=300
3636
LOCK_FILE='var/lock/subsys/'$SUBSYS
3737
START_LOG=$LOG_PATH/$SUBSYS-start.log
3838
STOP_LOG=$LOG_PATH/$SUBSYS-stop.log
39+
LSOF_PATH=/usr/sbin/lsof
3940
# source the functions library
4041
#-----------------------
4142
if [ -f /etc/rc.d/init.d/functions ]; then
@@ -44,9 +45,9 @@ fi
4445
#-----------------------
4546

4647
# check paths and permissions
47-
if [ ! -f '$INFOSERVICE/infraservice.sh' ] ; then
48+
if [ ! -f $INFOSERVICE/infaservice.sh ] ; then
4849
echo ''
49-
echo -n '**infaservice.sh file not found at $INFOSERVICE/infraservice.sh'
50+
echo -n "**infaservice.sh file not found at $INFOSERVICE/infraservice.sh"
5051
echo_failure
5152
echo ''
5253
fi
@@ -105,7 +106,7 @@ check_permissions() {
105106
abort=1
106107
fi
107108
else
108-
if [! -w $STOP_LOG ]; then
109+
if [ ! -w $STOP_LOG ]; then
109110
echo ''
110111
echo '** Log file '$STOP_LOG' is not writable by '$(whoami)' **'
111112
echo_failure
@@ -169,7 +170,7 @@ status () {
169170
}
170171

171172

172-
case $i in
173+
case $1 in
173174
status)
174175
status
175176
;;

0 commit comments

Comments
 (0)