mldonkey-users
[Top][All Lists]
Advanced

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

Re: [Mldonkey-users] start mldonkey as daemon??


From: Sergio Bayarri Gausi
Subject: Re: [Mldonkey-users] start mldonkey as daemon??
Date: Fri, 10 Jan 2003 17:12:35 +0100 (MET)

Hello,

>     stop)
>         if [ -n "`/sbin/pidof mldonkey`" ]; then
>                 kill -INT `/sbin/pidof mldonkey`
>                 echo -n "mlDonkey contacted .. "
>                 while [ -n "`/sbin/pidof mldonkey`" ]; do
>                         sleep 2
>                         echo -n "."
>                 done
>                 echo "stopped."

Is it OK to kill the mldonkey process? I always try to shutdown it gently
using the console (or mldonkey_command) because sometimes my files.ini was
broken if I killed the process (using the INT signal, not KILL).

So I guess a better approach would be:

>     stop)
>         if [ -n "`/sbin/pidof mldonkey`" ]; then
>                 ./mldonkey_command save
>                 ./mldonkey_command kill
>                 echo -n "mlDonkey contacted .. "
>                 while [ -n "`/sbin/pidof mldonkey`" ]; do
>                         sleep 2
>                         echo -n "."
>                 done
>                 echo "stopped."

Greetings,

Sergio





reply via email to

[Prev in Thread] Current Thread [Next in Thread]