erich.wanker Posted March 20, 2021 Share Posted March 20, 2021 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 More sharing options...
Ron Posted March 20, 2021 Share Posted March 20, 2021 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. 1 Link to comment Share on other sites More sharing options...
erich.wanker Posted March 20, 2021 Author Share Posted March 20, 2021 hi .. and thank you 🙂 sounds good - i will do it in the same way   Link to comment Share on other sites More sharing options...
Abaksoft Posted March 21, 2021 Share Posted March 21, 2021 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 More sharing options...
Administrators Farshad Mohajeri Posted March 21, 2021 Administrators Share Posted March 21, 2021 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 More sharing options...
mhmda Posted March 21, 2021 Share Posted March 21, 2021 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 More sharing options...
Ron Posted March 22, 2021 Share Posted March 22, 2021 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. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now