Jump to content

start unigui.dll after server makes a reboot ....


erich.wanker

Recommended Posts

hi .. after webserver makes a reboot - my unigui.dll is not loaded since a user starts the first session .. -> this is normal 🙂

but i have a Threadtimer in my servermodule - and on this day (server reboot) - nobody was starting a session: so my ThreadTimer didnt make his job (send email with todo-list for the next day)

What is the best way to start the unigui.dll after server-reboot?

should i put a shortcut  in the startup-folder? 

 

ThanX for suggestions

Erich

Link to comment
Share on other sites

You can do an http call to start the server, after the webserver reboot.

I use the windows task manager to do the webserver and dbserver reboot
each night at 2 a.m., and I could set up a task running 5 minutes after this,
which calls the unigui app over http. Just make a call and then terminate it.

  • Like 1
Link to comment
Share on other sites

15 hours ago, erich.wanker said:

hi .. after webserver makes a reboot - my unigui.dll is not loaded since a user starts the first session .. -> this is normal 🙂

but i have a Threadtimer in my servermodule - and on this day (server reboot) - nobody was starting a session: so my ThreadTimer didnt make his job (send email with todo-list for the next day)

What is the best way to start the unigui.dll after server-reboot?

should i put a shortcut  in the startup-folder? 

 

ThanX for suggestions

Erich

Hello Erich,

Did you try : OnServerStartup() event.

See :

http://forums.unigui.com/index.php?/topic/14946-unithreadtimer- -hyperserver-as-service/&do=findComment&comment=81453

 

Link to comment
Share on other sites

  • Administrators
22 hours ago, erich.wanker said:

hi .. after webserver makes a reboot - my unigui.dll is not loaded since a user starts the first session .. -> this is normal 🙂

but i have a Threadtimer in my servermodule - and on this day (server reboot) - nobody was starting a session: so my ThreadTimer didnt make his job (send email with todo-list for the next day)

What is the best way to start the unigui.dll after server-reboot?

should i put a shortcut  in the startup-folder? 

 

ThanX for suggestions

Erich

Hi,

It is recommend to use a Windows Service application for parts of your code which should be executed regularly.

Link to comment
Share on other sites

10 minutes ago, Farshad Mohajeri said:

Hi,

It is recommend to use a Windows Service application for parts of your code which should be executed regularly.

This is what we exactly do. 🙂

Link to comment
Share on other sites

On 3/21/2021 at 2:25 PM, mhmda said:

This is what we exactly do. 🙂

Me too, and the service app rarely gets updated, in contrast to the unigui app.

Also, it is nice to have the service app running if you have to take the webserver down,
keeping all those regular executions working fine during downtime.

Code separation is a great principle in software philosophy.

  • Like 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...