2008/9/28 Hingarajiya,Ravi <[EMAIL PROTECTED]>:
> Hi Alessandro,
>
>    Thanks for your reply.I know kill command.
>
>   But  we are developing IDE for Django. So We want to know that how to stop
> internal server using any command (example : /etc/init.d/httpd stop in
> apache web server ).

The httpd stop in init.d does a kill:

stop() {
        echo -n $"Stopping $prog: "
        killproc -d 10 $httpd
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}

the pid is stored in /etc/httpd/run/httpd.pid

so you can copy the same script for django-devel runserver, but I
think it's not useful because you can call the command within the ide,
see the pid and then call the kill to proc.
-- 
Alessandro Ronchi
Skype: aronchi
http://www.alessandroronchi.net

SOASI Soc.Coop. - www.soasi.com
Sviluppo Software e Sistemi Open Source
Sede: Via Poggiali 2/bis, 47100 Forlì (FC)
Tel.: +39 0543 798985 - Fax: +39 0543 579928

Rispetta l'ambiente: se non ti è necessario, non stampare questa mail

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to