This is an automated email from the ASF dual-hosted git repository.

echobravo pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git

commit 5e0f766b6905da78adead2a3b2c7d8023cf0f566
Author: Ryan McMahon <mcmella...@gmail.com>
AuthorDate: Wed Feb 14 16:20:48 2018 -0800

    GEODE-4341: Added startserver and stopserver scripts
---
 .../startserver.ps1                                | 41 ++++++++++++++++++++++
 .../stopserver.ps1                                 | 41 ++++++++++++++++++++++
 2 files changed, 82 insertions(+)

diff --git a/examples/dotnet/Apache.Geode.Examples.PutGetRemove/startserver.ps1 
b/examples/dotnet/Apache.Geode.Examples.PutGetRemove/startserver.ps1
new file mode 100644
index 0000000..05dfab9
--- /dev/null
+++ b/examples/dotnet/Apache.Geode.Examples.PutGetRemove/startserver.ps1
@@ -0,0 +1,41 @@
+#!/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+$GFSH_PATH = ""
+if (Get-Command gfsh -ErrorAction SilentlyContinue)
+{
+    $GFSH_PATH = "gfsh"
+}
+else
+{
+    if (-not (Test-Path env:GEODE_HOME))
+    {
+        echo "Could not find gfsh.  Please set the GEODE_HOME path. e.g. "
+        echo "(Powershell) `$env:GEODE_HOME = <path to Geode>"
+        echo " OR"
+        echo "(Command-line) set %GEODE_HOME% = <path to Geode>"
+    }
+    else
+    {
+        $GFSH_PATH = "$env:GEODE_HOME\bin\gfsh.bat"
+    }
+}
+
+if ($GFSH_PATH -ne "")
+{
+   Invoke-Expression "$GFSH_PATH -e 'start locator --name=locator 
--dir=$PSScriptRoot' -e 'start server --name=server --dir=$PSScriptRoot' -e 
'create region --name=example_userinfo --type=PARTITION'"
+}
\ No newline at end of file
diff --git a/examples/dotnet/Apache.Geode.Examples.PutGetRemove/stopserver.ps1 
b/examples/dotnet/Apache.Geode.Examples.PutGetRemove/stopserver.ps1
new file mode 100644
index 0000000..6c78ac8
--- /dev/null
+++ b/examples/dotnet/Apache.Geode.Examples.PutGetRemove/stopserver.ps1
@@ -0,0 +1,41 @@
+#!/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+$GFSH_PATH = ""
+if (Get-Command gfsh -ErrorAction SilentlyContinue)
+{
+    $GFSH_PATH = "gfsh"
+}
+else
+{
+    if (-not (Test-Path env:GEODE_HOME))
+    {
+        echo "Could not find gfsh.  Please set the GEODE_HOME path. e.g. "
+        echo "(Powershell) `$env:GEODE_HOME = <path to Geode>"
+        echo " OR"
+        echo "(Command-line) set %GEODE_HOME% = <path to Geode>"
+    }
+    else
+    {
+        $GFSH_PATH = "$env:GEODE_HOME\bin\gfsh.bat"
+    }
+}
+
+if ($GFSH_PATH -ne "")
+{
+   Invoke-Expression "$GFSH_PATH -e 'connect' -e 'destroy region 
--name=example_userinfo' -e 'stop server --name=server' -e 'stop locator 
--name=locator'"
+}
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
echobr...@apache.org.

Reply via email to