Running as a service on Win 7 - 64bit does not work
Running as a service on Win 7 - 64bit does not work
Hello,
I am trying to have Yawcam run as a service but I have been unsuccessfull so far.
The program does work (locally and remotely) when I start it normally.
I have opened all necessary ports on my router and on my software firewall (Comodo). Windows firewall is turned off.
If I monitor open ports on my machine, I can see that Yawcam_Service.exe doesn't do anything when it starts (apart from checking for the lastest version). The service does not listen on any ports !
I don't know what else to try...
Any idea ?
I am trying to have Yawcam run as a service but I have been unsuccessfull so far.
The program does work (locally and remotely) when I start it normally.
I have opened all necessary ports on my router and on my software firewall (Comodo). Windows firewall is turned off.
If I monitor open ports on my machine, I can see that Yawcam_Service.exe doesn't do anything when it starts (apart from checking for the lastest version). The service does not listen on any ports !
I don't know what else to try...
Any idea ?
Same problem Win 7 64 Yawcam does not work as a service
I am having the same problem as geoced. Win 7 64. Everything works great if I login then run Yawcam application. Service installed fine and shows up under services and starts automatically. Also doesn't work if login then start service manually however if started as service (auto or manual) then run application, application will complain that port is not available so it must be getting allocated by the service. Just doesn't open it. Anyone find the solution to this?
What account is your service running under - I think the service installs under the local desktop account which won't have the right permissions.
You could try changing the service to run under your account (Start->Run->services.msc), double click the Yawcam service and select the Logon tab.
Add your win account details and pw and restart the service.
You could try changing the service to run under your account (Start->Run->services.msc), double click the Yawcam service and select the Logon tab.
Add your win account details and pw and restart the service.
The Yawcam service is running as system local (which is what just about everything else is running as). Referring back to my original post, the service IS running as attempting to run the program once logged in does tell me the port is already in use (presumably by the service. This does not occur if I set the Yawcam service to start manually and don't start it). It simply does not stream anything or respond to requests on the port.
-
- Moderator
- Posts: 1210
- Joined: Wed Jan 14, 2009 3:50 am
Then the service must be improperly configured.
There is a way of setting the service to take the config files form a specific location. Perhaps it can't find the config file right now and defaults it's settings. Try changing the port when running yawcam manually and see if the service is using the newly configured port or not.
1) Edit the file C:\Program Files\Yawcam\service_profile.cfg to contain one line like this:
C:\yawcamsettings\yawcam
2) Edit the file C:\Program Files\Yawcam\launcher.cfg
Add the word service on the last line. If it's correct the last line will end with:
There is a way of setting the service to take the config files form a specific location. Perhaps it can't find the config file right now and defaults it's settings. Try changing the port when running yawcam manually and see if the service is using the newly configured port or not.
1) Edit the file C:\Program Files\Yawcam\service_profile.cfg to contain one line like this:
C:\yawcamsettings\yawcam
2) Edit the file C:\Program Files\Yawcam\launcher.cfg
Add the word service on the last line. If it's correct the last line will end with:
Code: Select all
yawcam.Main service
I still think it may be a permissions issue as some of the things Yawcam will do on start-up are privileged actions.
What happens if you run the service in debug mode?
First, stop the Yawcam service.
Next, start a command prompt. Unless you start by right-clicking and selecting "Run As" this will run under your logged in user's context.
Now, navigate to where Yawcam is installed, mine is under "C:\Program Files (x86)\Yawcam\"
Once there run and see what complaints (if any) come up.
If none come up then the service should be running (under that user context) and you can try connecting via http etc.
If something does come up and it's not obvious then post it up.
What happens if you run the service in debug mode?
First, stop the Yawcam service.
Next, start a command prompt. Unless you start by right-clicking and selecting "Run As" this will run under your logged in user's context.
Now, navigate to where Yawcam is installed, mine is under "C:\Program Files (x86)\Yawcam\"
Once there run
Code: Select all
Yawcam_Service.exe -debug
If none come up then the service should be running (under that user context) and you can try connecting via http etc.
If something does come up and it's not obvious then post it up.
Opening Firewall fixes run as service
When I open holes in the firewall for inbound connections on TCP and UDP 8081 having Yawcam run as a service started to work. I had to do this through the Advanced Settings dialog in the Windows 7 Firewall Control Panel. I added 2 rules to Incoming: TCP 8081 and UDP 8081. I'm running Windows 7 64 Bit Home Edition.
-
- Posts: 1
- Joined: Thu Jan 24, 2013 12:43 pm
Re: Running as a service on Win 7 - 64bit does not work
Referring back to my original post, the service IS running as attempting to run the program once logged in does tell me the port is already in use by the service.