Author |
|
kenbr Newbie
Joined: July 17 2007
Online Status: Offline Posts: 33
|
Posted: July 14 2008 at 22:08 | IP Logged
|
|
|
is anyone running PH as a service? has anyone figured out how to get the console up when running as a service?
i'd really like to have PH come back up after a reboot, but i need to lock my computers (username/password) to protect my VPN. i don't think i can set PH to start automatically unless/until i login other than as a service. might be missing something here, but..
so how is everyone doing this?
thanks,
kenb
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: July 15 2008 at 12:49 | IP Logged
|
|
|
use the scheduled tasks control panel to add it as a task that runs at startup, then open the advanced window and you can de-select "run only when I'm logged in" and give it your username and password and it should log itself in upon reboot.
let us know if it works
|
Back to Top |
|
|
kenbr Newbie
Joined: July 17 2007
Online Status: Offline Posts: 33
|
Posted: July 15 2008 at 21:43 | IP Logged
|
|
|
thanks! i'll try this in the next day or two and report back.
kenb
|
Back to Top |
|
|
kenbr Newbie
Joined: July 17 2007
Online Status: Offline Posts: 33
|
Posted: July 16 2008 at 19:51 | IP Logged
|
|
|
I've made the changes noted previously in this thread..
OK, Powerhome and the SDM start up automatically after a reboot and I can access PH by browsing to the localhost port 80 (I am able to turn lights on/off via the web server). But, if I start PH from my desktop so that I can access and change settings I get an error box every few seconds that tells me PH can't start the PLC. Of course, nothing shows in the SDM log window.
I assumed that by starting PH this way that it might behave similarly to starting it as a service and that I could then monitor/change its operation.
Have I missed something?
Thanks!!
Edited by kenbr - July 16 2008 at 20:17
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: July 16 2008 at 22:32 | IP Logged
|
|
|
if you start powerhome as I suggested i don't think you can access it from your desktop. You're actually starting a 2nd instance but the first one has hold of the PLC. You could kill the first one and then restart it if you want access from your desktop. a freeware program like process.exe (which allows you to kill processes by name) could be used in a batch script called by an icon to kill and restart it in one step.
Or maybe dave can comment on how you can access a running powerhome from a different user
|
Back to Top |
|
|
rboyleiii Newbie
Joined: January 15 2008 Location: United States
Online Status: Offline Posts: 11
|
Posted: July 31 2008 at 21:05 | IP Logged
|
|
|
I am running PH as a service on a headless computer.
I remote desktop to it with the /console option and I can launch the PH interface from the icon in the task tray.
Not sure if you can remote desktop to the same computer or not. (Never tried it, or had a reason to for that matter)
I am using a PLM, so I don't have SDM running and not sure what you would do about that.
HTH
Richard
|
Back to Top |
|
|
dhewison Newbie
Joined: February 28 2008 Location: United Kingdom
Online Status: Offline Posts: 25
|
Posted: August 01 2008 at 02:58 | IP Logged
|
|
|
I run PH as a service and use the following batch file to launch the console when I need to use it:
@echo off
net stop powerhome
"C:\Program Files\powerhome\pwrhome.exe"
net start powerhome
exit
This just stops the services, launches PH as an application, then when I exit the application it starts the PH service again.
David
|
Back to Top |
|
|
kenbr Newbie
Joined: July 17 2007
Online Status: Offline Posts: 33
|
Posted: August 01 2008 at 08:08 | IP Logged
|
|
|
thanks richard and david. i'll give both of these a try. i did run PH as a service some time ago, and tried the /console switch with the remote desktop (i was running that system headless at that time too), but had some issues. i still access my PH system via rdc, and i think david's batch file solution may just be what i need.
thanks again,
kenb
|
Back to Top |
|
|