Page 1 of 2

EventGhost as a service

Posted: Tue Jan 19, 2010 10:02 pm
by 22hn
Are there any plans of splitting EG into a windows service and a front-end application only to be used when making config changes or monitoring?

Re: EventGhost as a service

Posted: Thu Jan 28, 2010 12:10 pm
by jitterjames
what would be the advantages?

Re: EventGhost as a service

Posted: Fri Jan 29, 2010 1:31 am
by Livin
jitterjames wrote:what would be the advantages?
you don't need to be logged into the system for EG to work.

Re: EventGhost as a service

Posted: Wed Mar 31, 2010 6:12 pm
by eatmeimadanish
The only reason I could think of EG being beneficial as a service is so that multiple profiles could communicate to the same Eventghost session.

Re: EventGhost as a service

Posted: Tue Apr 13, 2010 6:37 pm
by 22hn
eatmeimadanish wrote:The only reason I could think of EG being beneficial as a service is so that multiple profiles could communicate to the same Eventghost session.
Think bigger...

Some of us have a decicated EvengGhost PC in the basement (in my case it's running virtual on my server).

It would be quite nice if the EG engine could run as a windows service and do it's stuff in the background (without anyone had to be logged on), and when you need to reconfigure/monitor you could do so from any PC in the house using a front-end application that communicates with that server service...

Even better would be if the server-side could run on multiple platforms (linux, windows...)

Re: EventGhost as a service

Posted: Tue Apr 13, 2010 7:09 pm
by Bartman
This would require a strict seperation of gui and service and the communication with running applications and it would still require a user process.
So this will not happen in the foreseeable future.

Re: EventGhost as a service

Posted: Thu Jun 23, 2011 1:29 pm
by skat
Is there any progress on this?

I have another use case: After waking up from stand-by or hibernate the system displays a log-on (or is it "switch-user"?) screen even if there is no password configured for the user. In this situation EG does not work and one has to plug in a proper keyboard or mouse to get through. I presume that running EG as a service could circumvent this issue.

Also, if crashed, I think a service can be restarted automatically.

Re: EventGhost as a service

Posted: Thu Jun 23, 2011 2:32 pm
by Pako
Progress is no, and if the situation will be the same as now (no other developer than me) then no progress will be.
My knowledge is insufficient.
However, you can try a trick that I use successfully.
It is described at the start of the topic Log redirector.

Pako

Re: EventGhost as a service

Posted: Thu Jun 23, 2011 4:27 pm
by Livin
skat wrote:Is there any progress on this?

I have another use case: After waking up from stand-by or hibernate the system displays a log-on (or is it "switch-user"?) screen even if there is no password configured for the user. In this situation EG does not work and one has to plug in a proper keyboard or mouse to get through. I presume that running EG as a service could circumvent this issue.

Also, if crashed, I think a service can be restarted automatically.
just disable the requirement to authenticate after waking... use autologin

Re: EventGhost as a service

Posted: Fri Jun 24, 2011 12:28 am
by skat
Thanks Livin, that works for my use case.

Pako, as for your Task Scheduler idea, I only managed to make it work with the option: "Run only when user is logged on".
If I select "Run whether user is logged on or not", EG does not respond at all. This is on Win7 64bit.

Re: EventGhost as a service

Posted: Wed Aug 03, 2011 8:00 pm
by eatmeimadanish
My assumption is that its not working because EG is not running, and there is no user space for EG to launch (IE not loading with the correct XML, or access to resources EG needs to run). You would probably need to make sure EG launches in the same user space you normally use it in.

In any case, what I do with my upcomming project (Doggo) which will probably make all of your lives easier and help make EG a much more extensible tool, I use EG as a user shell and launch it automatically during auto login on the main screen (my tv). Then I use a terminal service patch so I can remote in (without disturbing the main screen) and do any setup or customizations to the XML I need to. Then just use the network sender plugin or command line to send events to the main EG instance. It works elegantly, and EG is hidden in the background (like a service) and just keeps plugging away.

Doggo will be released soon for free and will include a ton of these functions pre setup. Basically converting a windows XP box into the most advanced Multimedia, Home Automation, Home Security server on the market. Watch www.doggohouse.com for details in the near future (hopefully by September 1st).

Re: EventGhost as a service

Posted: Sat Aug 27, 2011 11:02 am
by skat
Is there an application available or would it be possible to develop an application that would run as a Windows service and provide the following features:

- restart EG automatically if it stops responding
- start EG (as Administrator or other user) when a specific user is logged on
- allow only one instance of EG in memory

Re: EventGhost as a service

Posted: Sun Aug 28, 2011 4:11 am
by molitar
Skat, Have you tried FireDaemon? I've used it in the past as a system admin to run programs that were not designed to be services to run as a service.

http://www.firedaemon.com/

I know it can do all 3 that you asked.

Now their is a freeware program that may do what you want called NSSM - the Non-Sucking Service Manager located at https://iain.cx/src/nssm/ and it may do what you want as it has worked on some that the Microsoft's Srvany would not work for me with. Than you go into the recovery tab of the services and tell it to restart if it crashes.

Re: EventGhost as a service

Posted: Sun Aug 28, 2011 11:51 am
by skat
Thanks for the tip molitar but I tried both and the problem is that EG does not get to interact with the desktop at all. I run Windows7.

Re: EventGhost as a service

Posted: Sun Aug 28, 2011 1:24 pm
by molitar
I know their was an option with FireDaemon to let it interact with desktop. And for the NSSM in the service created by windows you have to go check the option for interacting with desktop. I will test when I get a chance again I believe I ran this before as a service and I have Windows 7 Ultimate 32bit.