This rc script is for Red Hat/CentOS/Oracle Linux systems, to start WebLogic Server automatically on system startup.
$Id: rc_weblogic.html,v 1.2 2010-12-08 21:15:11+09 kabe Exp $
/etc/rc.d/init.d/weblogic
/etc/sysconfig/weblogic
(new file you will create)
, the following values: # /etc/sysconfig/weblogic # The account which you installed the WebLogic Server, such as # weblogic, bea wls_user=oracle # Path to the WebLogic domain wls_domain_home=/opt/ora11g/Middleware/user_projects/domains/base_domain
sudo
(8) without a tty, i.e % ssh -T localhost sudo id user@localhost's password: **** sudo: sorry, you must have a tty to run sudothe rc script will bail with the same message on system boot. (It will work from shell prompt...) Edit
/etc/sudoers
(5) and add the line below:# # Disable "ssh hostname sudo", because it will show the password in clear. # You have to run "ssh -t hostname sudo ". # Defaults requiretty Defaults : root !requiretty
Basically, this is sudo -u user startWebLogic.sh
with lots of fluffs.
This script does
startWebLogic.sh
.
stopWebLogic.sh
invokes a graceful shutdown, but
it needs an admin password on command line.