Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  Embedded server restart?

Guest
Posted: Sun Aug 16, 2009 10:49 pm Reply with quote
Guest
Hi,

When the embedded yaws server restarts is there a hook which will notify
the application?
My app needs to be notified when the embedded server restarts, so that
I can configure it again!

Any ideas or suggestions?

Thanks
Jan

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist
ngocdaothanh
Posted: Mon Aug 17, 2009 12:45 am Reply with quote
User Joined: 06 Dec 2008 Posts: 43
If you can specify start_mod as documented at http://yaws.hyber.org/yman.yaws?page=yaws.conf, I think you can reconfigure Yaws after it has started.

Otherwise, I think you can implement lazy reconfiguration at the first HTTP request: in out/1 check if Yaws has not been reconfigured... I think you can remember if Yaws has been reconfigured in #sconf.ets, see http://yaws.hyber.org/embed.yaws.

Ngoc.


On Mon, Aug 17, 2009 at 7:48 AM, Jan Jacobs <hpjcon@mweb.co.za (hpjcon@mweb.co.za)> wrote:
Quote:
Hi,

When the embedded yaws server restarts is there a hook which will notify
the application?
My app needs to be notified when the embedded server restarts, so that
I can configure it again!

Any ideas or suggestions?

Thanks
Jan
 


Post received from mailinglist
View user's profile Send private message Send e-mail
Guest
Posted: Mon Aug 17, 2009 5:06 am Reply with quote
Guest
Thanks, I will have a look.
Jan


Ngoc Dao wrote:
> If you can specify start_mod as documented at
> http://yaws.hyber.org/yman.yaws?page=yaws.conf, I think you can
> reconfigure Yaws after it has started.
>
> Otherwise, I think you can implement lazy reconfiguration at the first
> HTTP request: in out/1 check if Yaws has not been reconfigured... I
> think you can remember if Yaws has been reconfigured in #sconf.ets,
> see http://yaws.hyber.org/embed.yaws.
>
> Ngoc.
>
>
> On Mon, Aug 17, 2009 at 7:48 AM, Jan Jacobs <hpjcon@mweb.co.za
> <mailto:hpjcon@mweb.co.za>> wrote:
>
> Hi,
>
> When the embedded yaws server restarts is there a hook which will
> notify
> the application?
> My app needs to be notified when the embedded server restarts, so that
> I can configure it again!
>
> Any ideas or suggestions?
>
> Thanks
> Jan
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.392 / Virus Database: 270.13.58/2306 - Release Date: 08/16/09 06:09:00
>
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum