Hi all...
I have a problem...
I wrote a small daemon for my server to start\stop the application...
#!/bin/bash
#
# eaid Startup script for the EAI Application
#
# chkconfig: 234 99 4
# description: Saves and restores system entropy pool for \
# higher quality random number generation.
. /etc/rc.d/init.d/functions
if [ -f /etc/sysconfig/eaid ]; then
. /etc/sysconfig/eaid
fi
# This are the conditions of the action
start() {
su - tibprod -c "updown_ems.sh up"
su - tibprod -c "updown_rvrd.sh up"
su - tibprod -c "updown_rva.sh up"
su - tibprod -c "updown_hawk.sh up"
su - tibprod -c "updown_admin.sh up"
}
stop() {
#su - tibprod -c "updown_admin.sh down"
#su - tibprod -c "updown_hawk.sh down"
#su - tibprod -c "updown_rva.sh down"
#su - tibprod -c "updown_rvrd.sh down"
su - tibprod -c "updown_ems.sh down"
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
*)
echo $"Usage: $prog {start|stop}"
exit 1
esac
exit $RETVAL
then i have added it by chkconfig --add eaid
and now i can see this:
chkconfig --list eaid
eaid 0:off 1:off 2:on 3:on 4:on 5:off 6:off
but...
then i'm looking at my /var/log/boot.log
i can see that the script is running then the computer starts but i cannot see that it's running the stop function when the computer is shutting down...
although i can see the "K" script on rc6.d...
what have i done wrong?
thanks for the help!