Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/27/12 10:19:22 (12 years ago)
Author:
ascheibe
Message:

#1580 changed user account for executing the slave service to NetworkService (thanks jkarder for the patch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.Slave.App/3.3/HiveSlaveApplication.cs

    r7259 r8340  
    2020#endregion
    2121
    22 using System.IO;
    2322using System.Threading;
    2423using System.Windows.Forms;
    25 using HeuristicLab.Clients.Hive.SlaveCore.Properties;
    2624using HeuristicLab.Clients.Hive.SlaveCore.Views;
    2725using HeuristicLab.PluginInfrastructure;
     
    3230    private HeuristicLab.Clients.Hive.SlaveCore.Core core;
    3331    public override void Run() {
    34       CheckWorkingDirectories();
    3532
    3633      core = new HeuristicLab.Clients.Hive.SlaveCore.Core();
     
    4845      core.Shutdown();
    4946    }
    50 
    51     /// <summary>
    52     /// Normally the configuration file just contains the folder names of the PluginCache and the AppDomain working directory.
    53     /// This means that these folders are created in the current directory which is ok for the console client and the windows service.
    54     /// For the HL client we can't do that because the plugin infrastructure gets confused when starting HeuristicLab.
    55     /// Therefore if there is only a relative path in the config, we change that to the temp path.
    56     /// </summary>
    57     void CheckWorkingDirectories() {
    58       if (!Path.IsPathRooted(Settings.Default.PluginCacheDir)) {
    59         Settings.Default.PluginCacheDir = Path.Combine(Path.GetTempPath(), Settings.Default.PluginCacheDir);
    60         Settings.Default.Save();
    61       }
    62 
    63       if (!Path.IsPathRooted(Settings.Default.PluginTempBaseDir)) {
    64         Settings.Default.PluginTempBaseDir = Path.Combine(Path.GetTempPath(), Settings.Default.PluginTempBaseDir);
    65         Settings.Default.Save();
    66       }
    67     }
    6847  }
    6948}
Note: See TracChangeset for help on using the changeset viewer.