![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shutdown script | kingsto88 | HP-UX | 0 | 03-20-2007 08:43 PM |
| A script for shutdown | kelu | UNIX for Dummies Questions & Answers | 12 | 08-23-2006 10:09 PM |
| Shutdown script | alpha_manic | UNIX for Advanced & Expert Users | 10 | 09-14-2005 05:14 PM |
| remote shutdown script | soliberus | Shell Programming and Scripting | 2 | 01-31-2005 06:46 PM |
| logout/shutdown script | ropers | UNIX for Dummies Questions & Answers | 1 | 08-02-2002 03:05 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Shutdown Script not executing...
Hi all...
I have a problem... I wrote a small daemon for my server to start\stop the application... Code:
#!/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
and now i can see this: Code:
chkconfig --list eaid eaid 0:off 1:off 2:on 3:on 4:on 5:off 6:off 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! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|