ORA_HOME=/dbmsu001/app/oracle/product/7.3.2; export ORA_HOME ORA_OWNER=oracle; export ORA_OWNER case $1 in 'start') echo "starting athena inetd" /etc/athena/inetd echo "starting httpsd no certificates" /var/https/httpsd -f /var/http/conf/httpd.conf echo "starting httpsd" /var/https/httpsd echo "starting the pdb DB" su - $ORA_OWNER -c $ORA_HOME/bin/dbstart & ;; 'stop') kill -TERM `cat /var/https/logs/httpd.pid` kill -TERM `ps -ef | grep http` kill -9 `cat /etc/athena/inetd.pid` su - $ORA_OWNER -c $ORA_HOME/bin/dbshut & ;; *) echo "usage: /etc/rc2.d/S90dbora {start|stop}" ;; esac