<HTML ><HEAD ><TITLE >Stopping from command line</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ "><LINK REL="HOME" TITLE="Caudium HOWTO" HREF="index.html"><LINK REL="UP" TITLE="Creating your first server" HREF="creating.html"><LINK REL="PREVIOUS" TITLE="Starting" HREF="starting.html"><LINK REL="NEXT" TITLE="Directory organization" HREF="directory.html"></HEAD ><BODY CLASS="sect1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Caudium HOWTO</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="starting.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Chapter 4. Creating your first server</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="directory.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="stopping">4.3. Stopping from command line</H1 ><P > There are two ways to stop Caudium: <P ></P ><UL ><LI ><P > Kill Caudium with a <TT CLASS="option" >-9</TT > signal. If you do this Caudium will restart. Actually it will be restarted by the start script. </P ></LI ><LI ><P > Kill Caudium (with kill(1)'s default TERM signal) . In this case, Caudium will stop cleanly. If you use Caudium 1.2 and later, you can use the <B CLASS="command" >caudiumctl</B > command. A man page for <B CLASS="command" >caudiumctl</B > should be available on your system. </P ></LI ></UL > <DIV CLASS="note" ><P ></P ><TABLE CLASS="note" WIDTH="100%" BORDER="0" ><TR ><TD WIDTH="25" ALIGN="CENTER" VALIGN="TOP" ><IMG SRC="../images/note.gif" HSPACE="5" ALT="Note"></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >In both cases Caudium will stop only after a few moments.</P ></TD ></TR ></TABLE ></DIV > </P ><P > On Debian GNU/Linux, you can use the following commands to manipulate the server status: </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="programlisting" ><TT CLASS="computeroutput" > # /etc/init.d/caudium stop # /etc/init.d/caudium start # /etc/init.d/caudium restart </TT ></PRE ></FONT ></TD ></TR ></TABLE ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="starting.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="directory.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Starting</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="creating.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Directory organization</TD ></TR ></TABLE ></DIV ></BODY ></HTML >