How to start mindtouch.host.exe without logging on

# 1 Old 08-31-2007, 09:40 AM
StefanH StefanH is offline StefanH's reputation StefanH is on a distinguished road » Newcomer
Join Date: Aug 2007 Location: Auckland, New Zealand Posts: 10
Default How to start mindtouch.host.exe without logging on
Hi guys - first of all: This is one of the best wiki implementations that I came across so far - and I have looked at a lot of them lately to set up a proof-of-concept system (which might grow quite large eventually - I really do hope so!).

My issue:
How to start mindtouch.host.exe without logging on? I admit , I currently use WinXP SP2 with a WAMP server setup.

But since our systems receive automatic updates from SMS servers, they also restart automatically (sometimes) ... this means that the mindtouch.host.exe process that I started in the cmd window is gone after the restart - not helpful for a wiki that should be up 24x7.

Any suggestions?

Thanks much in advance
Stefan
# 2 Old 08-31-2007, 12:22 PM
Bizzz Bizzz is online now Bizzz's reputation Bizzz will become famous soon enough » Community Member
Join Date: Feb 2007 Location: Paris, France Posts: 155
The better solution is to transform this program to a service.
If you look for "instsrv srvany firedaemon" with Google, you'll find 2 answers to this question.

1 - instsrv and srvany are 2 Microsoft programs included into NT resource kit (they are in the attached file ).
These 2 programs install a generic service able to launch any Windows application!
- unzip into c:\temp directory for example
- instsrv Dekiwiki c:\temp\srvany.exe (will install an empty service named Dekiwiki)
- go to Control Panel, Admin tools, Services, and select your new Dekiwiki service
- into start parameters enter path to your host program, WITH DOUBLE BACKSLASH in this path
f:\\directory1\\directory2\\directory3\\mindtouch.host.bat
- click on start button, and your new service will start

Unfortunatly, these start parameters are not saved into registry. For this, we need to do a manual update of registry :
- launch regedit or regedt32
- go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Dekiwiki
- create a new key named "Parameters"
- inside this key we must create 3 strings entries
----- "Application" with value = "f:\directory1\directory2\directory3\mindtouch.host .bat"
----- "AppParameters" with empty value
----- "AppDirectory" with value = "f:\directory1\directory2\directory3"

The day you want to delete this service, execute "instsrv.exe Dekiwiki remove"

2 - Another shareware program is more simple, look at this link : Firedaemon

Finally, when you have created your service able to launch Dekiwiki, you only have to mention you want an automatic start into its properties
BTW, I have not personnaly tested all of that because I use a Linux wiki. Tell me if this correctly works
Attached Files
File Type: zip instsrvany.zip (21.2 KB, 75 views)
Last edited by Bizzz : 09-03-2007 at 10:51 PM.
# 3 Old 08-31-2007, 03:17 PM
francishsu francishsu is offline francishsu's reputation francishsu is on a distinguished road » Newcomer
Join Date: Aug 2007 Posts: 12
I've had luck on Windows Server 2003 running it as a scheduled task, with the schedule being "When my computer starts". I did set the task to run as a different user, because if I start up the job manually and it's running using my user, then it does not launch in the background.

Also, in order to stop it, I have to go into task manager to kill it. Stopping the scheduled task does not appear to kill the process.
# 4 Old 08-31-2007, 03:56 PM
SteveB SteveB is online now SteveB's reputation SteveB has a reputation beyond reputeSteveB has a reputation beyond reputeSteveB has a reputation beyond repute » MindTouch Team
Join Date: Jul 2006 Location: San Diego, CA Posts: 4,949
Bizzz,

That looks pretty sweat. Thanks for sharing it!
Steve G. Bjorg - Chief Architect
Did you check the MindTouch Deki FAQ?
Found a bug? Report it.
Follow me on Twitter
Find us on IRC: irc.freenode.net #mindtouch
# 5 Old 08-31-2007, 06:13 PM
PeteE PeteE is online now PeteE's reputation PeteE has disabled reputation » MindTouch Team
Join Date: Jul 2006 Posts: 714
Send a message via Skype™ to PeteE
Bizzz - Thanks SO much. That was _incredibly_ helpful information! I created a wiki page on OpenGarden based on your instructions.

Running Dekihost as a Windows Service
PeteE - MindTouch lackey
Join #mindtouch on freenode for questions about MindTouch
# 6 Old 08-31-2007, 09:52 PM
StefanH StefanH is offline StefanH's reputation StefanH is on a distinguished road » Newcomer
Join Date: Aug 2007 Location: Auckland, New Zealand Posts: 10
Default Thank much!
Bizzz - just awsome, your explanation :-) ... cant wait to try it next week (we have already weekend here in NZ).

PeteE - thx much for the wiki page ... I was looking for something like this for a couple of hours - before deciding it's just not there.

Great community you've got here!
I will let you know of my experience with Bizzz' suggestions ...

Thanks again!
Stefan
# 7 Old 09-03-2007, 09:02 PM
StefanH StefanH is offline StefanH's reputation StefanH is on a distinguished road » Newcomer
Join Date: Aug 2007 Location: Auckland, New Zealand Posts: 10
Default Update - success!!!
Many thanks, Bizzz - it worked just as expected and (almost) as you suggested :-)

The only comment that I have is that you need to point the start parameters of the Dekiwiki service to mindtouch.host.bat (not exe) ... but I just checked and it has already been updated on the wiki page.

Have a great day & thx again!
Stefan
# 8 Old 09-03-2007, 10:48 PM
Bizzz Bizzz is online now Bizzz's reputation Bizzz will become famous soon enough » Community Member
Join Date: Feb 2007 Location: Paris, France Posts: 155
Thanks for comments. I've edited my previous post and replaced .exe by .bat
# 9 Old 12-11-2008, 01:18 PM
cajmcmahon cajmcmahon is offline cajmcmahon's reputation cajmcmahon is on a distinguished road » Newcomer
Join Date: Jul 2008 Location: Dublin, Ireland Posts: 15
Default VMWare server
By any chance, is there a similar approach for running a VMWare server...?
# 10 Old 12-11-2008, 01:56 PM
crb crb is online now crb's reputation crb has a reputation beyond reputecrb has a reputation beyond reputecrb has a reputation beyond reputecrb has a reputation beyond reputecrb has a reputation beyond reputecrb has a reputation beyond reputecrb has a reputation beyond repute » Purveyor of Awesome
Join Date: Feb 2008 Location: London upon Thames Posts: 2,439
What do you want to do - run VMware without logging onto Windows, or run the script inside the (Linux) VM without logging onto the VM?

Both are equally possible - the first using VMware Server, rather than Player/Workstation, and the second happens already!
If my post helped you, please click the icon at the top right of my post to add to my reputation. Or buy me an iPad. Thanks!
Page 1 of 2 1 2 >

Thread Tools

Search this Thread

Search this Thread Advanced Search

Display Modes

Powered by MindTouch 2010