[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Single user mode.



This is from init man page on redhat:
<--
       Init  is  compatible  with  the  System  V  init. It works closely
       together with the  scripts  in  the  directories  /etc/init.d  and
       /etc/rc{runlevel}.d.   If  your system uses this convention, there
       should be a README file in the  directory  /etc/init.d  explaining
       how these scripts work. 
-->

Put a script that shutdown whatever in /etc/init.d and make 
a link to it in the appropriate rc directory.

and i can't help it .. did you read the man page ?

Mike <lizard@mail.mofet.macam98.ac.il> 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.
> 
> So i started to bring down all the process by hand.
> 
> Can it be automatically ?
> Is it really necessary ? i do this in order to do a full backup of my
> system.
> 
> Thanks,
> Mike
> 
> 
> 
> =================================================================
> To unsubscribe, send mail to linux-il-request@linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request@linux.org.il

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il