rodcs
10/14/2016 - 6:53 PM

Add script to boot

Add script to boot

# chkconfig: 2345 90 60
# description: Start node manager

start() {
if [ "$EUID" -eq 0 ];
then
/sbin/runuser -l oracle  -c '/app/oracle/Middleware/Oracle_WC1/common/bin/wlst.sh /app/WLST/startAllManagedServers.py /app/WLST/startAllManagedServers.properties > /app/domains/mw_domain/bin/startManagedServers.out  &'
else
/app/oracle/Middleware/Oracle_WC1/common/bin/wlst.sh /app/WLST/startAllManagedServers.py '/app/WLST/startAllManagedServers.properties' > /app/domains/mw_domain/bin/startManagedServers.out  &
fi
}
stop() {
echo 'No need to stop'
}
case "$1" in
start)
start
;;
stop)
stop
;;

*)
echo $”Usage: $0 {start|stop}”
RETVAL=1
esac
exit 0
# chkconfig: 2345 90 60
# description: Start node manager

start() {
/sbin/runuser -l oracle  -c '/app/oracle/Middleware/wlserver_10.3/server/bin/startNodeManager.sh > /app/oracle/Middleware/wlserver_10.3/server/bin/nohup.out  &'
}
stop() {
echo 'No need to stop'
}
case "$1" in
start)
start
;;
stop)
stop
;;

*)
echo $”Usage: $0 {start|stop}”
RETVAL=1
esac
exit 0
# chkconfig: 2345 90 60
# description: Start node manager

start() {
/sbin/runuser -l oracle  -c '/app/domains/mw_domain/bin/startWebLogic.sh > /app/domains/mw_domain/bin/nohup.out  &'
}
stop() {
echo 'No need to stop'
}
case "$1" in
start)
start
;;
stop)
stop
;;

*)
echo $”Usage: $0 {start|stop}”
RETVAL=1
esac
exit 0
#Checa runlevel
/sbin/runlevel

#Adicionar na inicialização (Setar o runlevel do método anterior)
chkconfig --levels 235 slapd on
chkconfig --levels 235 httpd on

#Checa se esta habilitado
chkconfig --list httpd