diff options
author | gareth | 2007-05-13 21:01:21 +0000 |
---|---|---|
committer | gareth | 2007-05-13 21:01:21 +0000 |
commit | 0834b097f61b723462f9c1ba2416009069d62504 (patch) | |
tree | 7415ca034970de059cbc9179fad110248b07ac84 /ServiceManager | |
parent | (no commit message) (diff) | |
download | opensim-SC-0834b097f61b723462f9c1ba2416009069d62504.zip opensim-SC-0834b097f61b723462f9c1ba2416009069d62504.tar.gz opensim-SC-0834b097f61b723462f9c1ba2416009069d62504.tar.bz2 opensim-SC-0834b097f61b723462f9c1ba2416009069d62504.tar.xz |
Added skeleton master service manager
Diffstat (limited to 'ServiceManager')
-rw-r--r-- | ServiceManager/ServiceManager.cs | 31 | ||||
-rw-r--r-- | ServiceManager/ServiceManager.exe.build | 40 |
2 files changed, 71 insertions, 0 deletions
diff --git a/ServiceManager/ServiceManager.cs b/ServiceManager/ServiceManager.cs new file mode 100644 index 0000000..6a613bb --- /dev/null +++ b/ServiceManager/ServiceManager.cs | |||
@@ -0,0 +1,31 @@ | |||
1 | using System; | ||
2 | using System.Threading; | ||
3 | using System.ServiceProcess; | ||
4 | |||
5 | public class OpenGridMasterService : System.ServiceProcess.ServiceBase { | ||
6 | |||
7 | private Thread ServiceWorkerThread; | ||
8 | |||
9 | public OpenGridMasterService() | ||
10 | { | ||
11 | CanPauseAndContinue = false; | ||
12 | ServiceName = "OpenGridServices-master"; | ||
13 | } | ||
14 | |||
15 | private void InitializeComponent() | ||
16 | { | ||
17 | this.CanPauseAndContinue = false; | ||
18 | this.CanShutdown = true; | ||
19 | this.ServiceName = "OpenGridServices-master"; | ||
20 | } | ||
21 | |||
22 | protected override void OnStart(string[] args) | ||
23 | { | ||
24 | |||
25 | |||
26 | } | ||
27 | |||
28 | public static void Main() | ||
29 | { | ||
30 | } | ||
31 | } | ||
diff --git a/ServiceManager/ServiceManager.exe.build b/ServiceManager/ServiceManager.exe.build new file mode 100644 index 0000000..8cde4bf --- /dev/null +++ b/ServiceManager/ServiceManager.exe.build | |||
@@ -0,0 +1,40 @@ | |||
1 | <?xml version="1.0" ?> | ||
2 | <project name="ServiceManager" default="build"> | ||
3 | <target name="build"> | ||
4 | <echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" /> | ||
5 | <mkdir dir="${project::get-base-directory()}/${build.dir}" /> | ||
6 | <copy todir="${project::get-base-directory()}/${build.dir}"> | ||
7 | <fileset basedir="${project::get-base-directory()}"> | ||
8 | </fileset> | ||
9 | </copy> | ||
10 | <csc target="exe" debug="${build.debug}" unsafe="False" define="TRACE" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.exe"> | ||
11 | <resources prefix="ServiceManager" dynamicprefix="true" > | ||
12 | </resources> | ||
13 | <sources failonempty="true"> | ||
14 | <include name="ServiceManager.cs" /> | ||
15 | </sources> | ||
16 | <references basedir="${project::get-base-directory()}"> | ||
17 | <lib> | ||
18 | <include name="${project::get-base-directory()}" /> | ||
19 | <include name="${project::get-base-directory()}/${build.dir}" /> | ||
20 | </lib> | ||
21 | <include name="System.dll" /> | ||
22 | <include name="System.ServiceProcess.dll" /> | ||
23 | </references> | ||
24 | </csc> | ||
25 | <echo message="Copying from [${project::get-base-directory()}/${build.dir}/] to [${project::get-base-directory()}/../bin/" /> | ||
26 | <mkdir dir="${project::get-base-directory()}/../bin/"/> | ||
27 | <copy todir="${project::get-base-directory()}/../bin/"> | ||
28 | <fileset basedir="${project::get-base-directory()}/${build.dir}/" > | ||
29 | <include name="*.dll"/> | ||
30 | <include name="*.exe"/> | ||
31 | </fileset> | ||
32 | </copy> | ||
33 | </target> | ||
34 | <target name="clean"> | ||
35 | <delete dir="${bin.dir}" failonerror="false" /> | ||
36 | <delete dir="${obj.dir}" failonerror="false" /> | ||
37 | </target> | ||
38 | <target name="doc" description="Creates documentation."> | ||
39 | </target> | ||
40 | </project> | ||