On Sat, 14 Nov 2009, hadi motamedi wrote:

> Can you please do me favor and let me know how can I stop my Asterisk ? Can
> you please confirm if the following procedure is correct to stop it ?

> #/etc/init.d/asterisk stop

Yup.

> #cd /etc/init.d
> #chmod 0000 asterisk

These commands imply you don't want Asterisk to start when the OS boots.

These commands will work (because you are removing the execute bits), but 
(assuming you are using a RedHat-ish OS like CentOS) the correct command 
is:

        sudo chkconfig --del asterisk

This removes the "run level links" and tells chkconfig to forget about the 
service as well.

(It is not considered "best practice" to be issuing shell commands as 
root. You should log in as yourself and use sudo. This is less "risky" and 
leaves a nice audit trail of what you or your co-workers did.)

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       [email protected]      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to