Dear All 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 #cd /etc/init.d #chmod 0000 asterisk Let me thank you in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091114/a313bc01/attachment.htm
cli> stop now or cli > stop gracefully :) otherwise pkill -9 asterisk On Sat, Nov 14, 2009 at 7:39 AM, hadi motamedi <motamedi24 at gmail.com> wrote:> Dear All > 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 > #cd /etc/init.d > #chmod 0000 asterisk > Let me thank you in advance > > > _______________________________________________ > -- 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 >-- Best Regards Yawar Hadi Noshahi Consultant/Software Engineer NGI Islamabad MS Computer Science Linkoping University Sweden +46700-445479 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091114/7f9e3863/attachment.htm
This one is manual way of doing it. You can get more details at page http://www.voip-info.org/wiki/view/Asterisk+Starting+and+Stopping It has provided the init.d scripts where you can automate the process. /ag On Sat, Nov 14, 2009 at 7:44 AM, Yawar Hadi <yawarhadi at gmail.com> wrote:> cli> stop now > or > cli > stop gracefully > :) > otherwise > > pkill -9 asterisk > > On Sat, Nov 14, 2009 at 7:39 AM, hadi motamedi <motamedi24 at gmail.com>wrote: > >> Dear All >> 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 >> #cd /etc/init.d >> #chmod 0000 asterisk >> Let me thank you in advance >> >> >> _______________________________________________ >> -- 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 >> > > > > -- > Best Regards > > Yawar Hadi Noshahi > Consultant/Software Engineer > NGI Islamabad > > MS Computer Science > Linkoping University > Sweden > +46700-445479 > > > _______________________________________________ > -- 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091114/2c380651/attachment.htm
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 stopYup.> #cd /etc/init.d > #chmod 0000 asteriskThese 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