chrisleadingside
IS-IT--Management
I am writing a startup script for AIX (see below) and it doesnt seem to be working. I have placed it into the appropriate rc2.d etc folders in /etc/rc.d/
is this right? I have placed my script (minus the commands) below. Could someone help me. at the moment everytime someone decides to restart the server I have to manually run the script by typing: ./startupscript start
(which works fine)
HELP!
Thanks
Chris
#!/bin/ksh
# Startup Script for AIX
case "$1" in
start )
;;
stop )
;;
restart )
;;
$0 stop
$0 start
;;
* )
echo "Usage: $0 start|stop|restart"
exit 1
esac
is this right? I have placed my script (minus the commands) below. Could someone help me. at the moment everytime someone decides to restart the server I have to manually run the script by typing: ./startupscript start
(which works fine)
HELP!
Thanks
Chris
#!/bin/ksh
# Startup Script for AIX
case "$1" in
start )
;;
stop )
;;
restart )
;;
$0 stop
$0 start
;;
* )
echo "Usage: $0 start|stop|restart"
exit 1
esac