[Asterisk-Users] FOP flash panel: how to reload config files when running

tracinet traci.asterisk at gmail.com
Mon May 8 08:11:51 MST 2006


I just issue a 'service op_panel reload' at the command line and it reloads
the configuration without stopping the service :)

On 5/7/06, Tzafrir Cohen <tzafrir at cohens.org.il> wrote:
>
> On Sun, May 07, 2006 at 08:44:41AM -0400, Doug Lytle wrote:
> > Wilson Pickett wrote:
> > >>> No, you have to kill the op_server app and restart it
> > >>This is incorrect.  You can just send it the HUP (Hangup) signal and
> it
> > >>will reload it's configuration files.
> > >
> > >Isn't that what HUP does? :)
> > >
> > No,
> >
> > HUP sends the Hang UP signal, causing an application to reload/re-read
> > it's configs without ending the application.  A  TERM causes will KILL
> it.
>
> Actually the name "Hang UP" is misleading here. SIGHUP basically tells a
> terminal application that its terminal has been hung up. Normally such a
> program should terminate, because you wouldn't want to leave a stale
> program running (see also nohup(1) ). By convention X programs behave
> basically the same on SIGHUP. Although their "hangup" is really the
> closing of the connection to the X server.
>
> Daemons have no controlling terminal normally. So SIGHUP is meaningless
> for them. For some strange reason, that signal was abused to tell
> programs with no terminal to re-read their configuration.
>
> /me wonders what should happen when you run 'asterisk -c' in a an xterm
> and then close that xterm. ;-)
>
> -- Tzafrir
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.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/20060508/1604f8ca/attachment.htm


More information about the asterisk-users mailing list