Hi List, What do it mean safe_asterisk ? I read too much about it but how it's works as Daemon process? When We install asterisk with the help of .tar file then safe_asterisk is install or not ? If yes then how can we work with that ? I am too much confusing.. ----- Thanks and regards Virendra Bhati +91-9172341457 Software Engineer -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111123/1e6d938f/attachment.htm>
Safe_asterisk refers to the bash script /usr/sbin/safe_asterisk which is installed by all Asterisk installs whether by rpm, tar or svn. It does exhibit daemon-like behavior in that it is run as a background process and will restart itself if you kill it incorrectly. From: virendra bhati [mailto:virbhati at gmail.com] Sent: Wednesday, November 23, 2011 1:16 AM To: Asterisk Users Mailing List - Non-Commercial Discussion; Sam Govind; Danny Nicholas Subject: safe_asterisk ? Hi List, What do it mean safe_asterisk ? I read too much about it but how it's works as Daemon process? When We install asterisk with the help of .tar file then safe_asterisk is install or not ? If yes then how can we work with that ? I am too much confusing.. ----- Thanks and regards Virendra Bhati +91-9172341457 Software Engineer -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111123/15f1ee7f/attachment.htm>
On Wed, Nov 23, 2011 at 08:16:36AM -0600, Danny Nicholas wrote:> Safe_asterisk refers to the bash script /usr/sbin/safe_asterisk which is > installed by all Asterisk installs whether by rpm, tar or svn. It does > exhibit daemon-like behavior in that it is run as a background process and > will restart itself if you kill it incorrectly.Note that systems with upstart / systemd will do that more relibly. If you run asterisk under one of those, use a plain upstart / systemd init config rather than a legacy sysv init.d script and avoid using safe_asterisk. -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
On 11-11-23 09:21 AM, Tzafrir Cohen wrote:> On Wed, Nov 23, 2011 at 08:16:36AM -0600, Danny Nicholas wrote: >> Safe_asterisk refers to the bash script /usr/sbin/safe_asterisk which is >> installed by all Asterisk installs whether by rpm, tar or svn. It does >> exhibit daemon-like behavior in that it is run as a background process and >> will restart itself if you kill it incorrectly. > > Note that systems with upstart / systemd will do that more relibly. If > you run asterisk under one of those, use a plain upstart / systemd init > config rather than a legacy sysv init.d script and avoid using > safe_asterisk. >We should consider updating the Makefile in asterisk trunk to start using them. More and more OS are starting to support them. -- Paul Belanger Digium, Inc. | Software Developer twitter: pabelanger | IRC: pabelanger (Freenode) Check us out at: http://digium.com & http://asterisk.org