[asterisk-users] Inquiry:How to stop Asterisk?
Steve Edwards
asterisk.org at sedwards.com
Sat Nov 14 09:59:45 CST 2009
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 sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
More information about the asterisk-users
mailing list