To run dekihost as a windows service which starts at boot, do the following:

    Manual installation

    Install SrvAny

    SrvAny is a windows tool to run any executable as a windows service.  You can find the tool attached to this page or as part of the windows reskit from Microsoft.

    Extract the .zip to:

    c:\reskit

    Create the service

    Launch cmd.exe (Start->Run->cmd) and do the following to install the service

    cd c:\reskit
    instsrv dekihost c:\reskit\srvany.exe

    Create the Registry Settings

    Launch regedit: Start->Run->regedit 

    Navigate to:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\dekihost
    • Create a new key named "Parameters"
    • inside this key we must create 3 strings entries
      • "Application" with value = "c:\<deki_install_dir>\web\bin\mindtouch.host.exe"
      • "AppParameters" with value = everything on the line after "mindtouch.host.exe" in your mindtouch.host.bat
      • "AppDirectory" with value = "c:\<deki_install_dir>\web\bin"

       

    Configure the service

    Launch the Services control panel (Start->Administrative Tools->Services) and double-click on the "dekihost" service.

    Click the Log On tab and define a user to run the services as... it should run fine as the Local System Account (recommended)

    Click the Start button to start the service. 

    Verification

    If everything was successful, you should be able to contact the dekihost by visiting the following URL in your browser:

    http://localhost:8081/deki/@about 

    The easy way

    If you don't want to mess around with srvany and regedit, simply use the freeware RunAsSrv that can be downloaded at http://www.pirmasoft.de/runassvc.php. Unzip the file and start RunAsSrv.exe. Enter your parameters and klick on OK, that's it!


    RunAsSvc.png

    Windows 2000

    When running MindTouch under W2K you will need Mono and therefore the service you start is mono.exe (C:\Program Files\Mono-2.4.3.1\bin\mono.exe) and the parameter will be everything on the line after "set CMD=" (or "mono.exe" if already changed) in your mindtouch.host.bat.

    Remove Service

    To delete the dekihost service, run the following

    cd c:\reskit
    instsrv dekihost REMOVE
    Tag page

    Files 2

    FileVersionSizeModified 
    Viewing 5 of 5 comments: view all
    Unfortunately, mindtouch.host.bat doesn't exist in the bin directory of the hayes 1.8.1d install, is there something wrong with the download or is it just missing? I can't get the install.php to get passed this line either:

    Have XML / Latin1-UTF-8 conversion support. PHP's mbstring module is missing. Please see the PHP mbstring manual for information on how to install and configure mbstring

    I've uncommented the mbstring extension and also copied the php_mbstring.dll to the apache directory. Any clues would be helpful given that I can't get a login to the forums to get help.....
    Posted 07:54, 10 Sep 2007
    See solution at: http://forums.opengarden.org/showthread.php?p=3343
    Posted 08:42, 10 Sep 2007
    hey seiferb - the mindtouch.host.bat actually gets created by the installer. Once you've successfully setup mbstring within PHP and run the installer, the file will be there.

    thanks,
    pete
    Posted 08:52, 10 Sep 2007
    After following these instructions (and other postings in the forums) to get my native install of Deki-Wiki on a WinXP system running as a service, it still starts up in a DOS box on the screen. You can minimize the DOS box, but if you close it, Deki-Wiki shuts down. To get rid of the DOS box entirely (run it invisibly in a separate instance) open up note pad, enter the following single line of text, and save it to your c:\<server>\web\bin folder as, for example, "invisible.vbs".

    CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False

    To evoke the script to start the Deki-Wiki service, do Start | Run | Regedit.
    Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\dekihost\Parameters
    Modify the Application key value to read as follows:

    wscript.exe "C:\<server>\web\bin\invisible.vbs" "C:\<server>\web\bin\mindtouch.host.bat"

    Of course, with this method if anything goes wrong you will see nothing on your screen, and the only way to shut the DOS box down if it does throw an error is to go to Start | Run | services.msc and manually shut down your Deki-Wiki host service. But this is such a short script file that there's not much likely to go wrong once you have it working correctly. edited 20:51, 24 Oct 2007
    Posted 20:18, 24 Oct 2007
    if you don't want the cmd window, and want it to run as the system user acct... simply change the above steps so that instead of it executing a .bat file it executes the .exe file directly. Put the parameters from your .bat file into the AppParameters value you created per the guide.
    Posted 07:28, 7 Mar 2008
    Viewing 5 of 5 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by