Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
#!/bin/sh
#------------------------------------------------------------------------------
# Generated for the Sun ONE Web Server 6.1
#
# Author: Sun Microsystems, Inc. (2003)
#------------------------------------------------------------------------------
# Source function library.
. /etc/rc.d/init.d/functions
# See how we were called.
case "$1" in
start)
echo "Sun ONE Web Server $S1WS_VERSION starting ($S1WS_HOME)"
for each_server in $S1WS_HOME/https-*
do
if [ -d $each_server ]; then
echo -n " `basename $each_server`: "
$each_server/start && success || failure $1
echo
fi
done
touch /var/lock/subsys/$SCRIPT_NAME > /dev/null 2>&1
;;
stop)
echo "Sun ONE Web Server $S1WS_VERSION stopping ($S1WS_HOME)"
for each_server in $S1WS_HOME/https-*
do
reversed_list="$each_server $reversed_list"
done
for each_server in $reversed_list
do
if [ -d $each_server ]; then
echo -n " `basename $each_server`: "
$each_server/stop 2>&1 && success || failure $1
echo
fi
done
rm -f /var/lock/subsys/$SCRIPT_NAME > /dev/null 2>&1
;;
restart)
$0 stop || return=$rc_failed
$0 start || return=$rc_failed
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
How about "/etc/rc.d/init.d/webserver01 stop" (no quotes) followed by "chkconfig webserver01 off".
Oh, and constantly bumping your own post is annoying and makes people less likely to want to help you. Posters here tend to be busy folks who can't necessarily help you immediately.
How about "/etc/rc.d/init.d/webserver01 stop" (no quotes) followed by "chkconfig webserver01 off".
many , you are a e geneious . this works immediately. this command has worked.
here is the output from the shell
# /etc/rc.d/init.d/webserver01 stop
Sun ONE Web Server 6.1 stopping (/opt/SUNWwbsvr)
https-mach104: server has been shutdown
[ OK ]
https-admserv: server has been shutdown
[ OK ]
yahooooooooo......its done.
BTW, is this permanently stopped ?? or again it will start automaticall as soon as i start my system again ? what do you think ?....i am not shutting down system right now though.
It is not permanently stopped, you just shut it off for your current session. You should try the second part of the suggested command, where you were wisely told to try
Quote:
followed by "chkconfig webserver01 off".
by btmiller. Try that, and see what it does. Also, if you are actually using this machine, please upgrade to a distro from the 21st century. RedHat 9 is ancient, unsupported junk. It is like finding a newspaper from 6 years ago. Kind of interesting to look at, but of no practical use at all. How everyone and their grandmother installed (and continues to install) that distro is beyond me. I did it at one point as well, it was my first linux. If you like redhat, try fedora core 4. If you don't like it, there are hundreds of other choices, all of them current releases.
There are three places where a daemon like this might be started:
Directly in /etc/inittab.
Via a symbolic-link starting with the letter "S" somewhere in, say, /etc/rc.d/rc5.d.
By means of the xinetd daemon, say with a file in /etc/xinetd.d.
If a process is continuously pegging the system at 100% busy, then that program is probably looping (malfunctioning). It usually puts some kind of message in a file in the /var/log directory when it does so.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.