On Sat, Apr 08, 2000 at 10:37:36PM +0300, Mike wrote:
> Hi list.
> I have a question, it will sound like a newbi one but never the less, i
> must ask.
> 
> How do i bring the server to a single user mode.
> Ok ok, i know to do  init S/s , but that only one part of the question.
> What i want is like in Solaris or Digital Unix single user mode.
> meaning, NOTHING (or almost nothing) is running on the background.
> (even the HD are not mounted)
> 
> In Linux i wrote init S and got to the bash# prompt.
> I noticed that the network was down, but only it. My Databases, http ,
> inet and all the other process that makes my server were still there.

As /etc/inittab tells, runlevel 1 is "single user mode".
I assume the boot-parameter "single" would bring to it too.

As long as you launch your database, http and whatever from
proper init scripts (/etc/rc.d/init.d) which are specified
to run in high runlevels (usually 3 to 5), init would make
sure they're shut down on the other levels.

man 8 chkconfig
for more info on writing init scripts correctly.

-- 
Best regards,
Ilya Konstantinov a.k.a Toastie
[http://toast.demon.co.il]

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to