How do I add flags when running the console in service mode?

From FaHWiki

Jump to: navigation, search

To add flags to the Windows NT/2000/XP Console client, when run as a service, you have to make some changes in the registry. You MUST be logged into an account with Administrative privileges, to make any changes to the registry. Please read the Note: at the bottom, before even attempting this.

1. Shut down the folding instance through the Services manager snap-in.

There are several methods to get to the services snap-in as follows.

  • Click Start -> Click Run -> type in services.msc -> Click OK.
  • Click Start -> Go to Settings -> Click Control Panel -> Double Click Administrative Tools -> Double Click Services.

Find the service entry for folding. By default, it will be something that starts like this: FAH@......

To stop the service, use one of the following methods.

  • Click once on the Service to select it -> Click Action -> Click Stop.
  • Right Click on the Service -> Click Stop.
  • Double Click the Service -> Click Stop.
  • Right click on the Service -> Click Properties -> Click Stop.

You should see the Service stop.

You can then minimize the services snap-in, or close it.

2. Run regedit.

  • Click Start -> Click Run -> Type in regedit -> Click OK.
  • Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<service name>
  • Right Click ImagePath -> Click Modify.
  • Add whatever flags you wish to the end (after a space).
    • EG....
Image:Edit_string.jpg
  • Click OK.
  • Exit regedit.


3. Restart the Folding Service.

  • Re-open the Services manager snap-in.
  • Verify that your changes appear there.
  • Restart the service.
    • Basically the same way that you stopped it. Just click Start. ;)


Contents

NOTE:


Quoting from Microsoft: "Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk."
Although the above is a fairly comprehensive guide, use this procedure at your own risk! You have been warned.

NOTE 2:

FAH is designed so that no flags are necessary in a service other than the one -svcstart which is created automatically. Some flags (and settings) are obviously not applicable to a service, including things like -config or -configonly or the setting of Ask_Before_Connecting

NOTE 3:

The -local flag is implied by -svcstart, so adding it is useless.
Adding the -advmethods flag isn't really necessary since that selection is available in the Advanced Configuration section of V5.04

NOTE 4:

The -oneunit flag is designed to stop the client when the current WU finishes. The service is designed to restart itself if, for some unknown reason, it crashes or stops, so although the -oneunit flag will stop the service, it will immediately restart so that flag will not achieve the desired result.

See also



-=MB=-
FCF MOD

02:17, 7 Jun 2005 (PDT)

Personal tools