OSDN Git Service

* [shogi-server]
authorbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Fri, 28 Nov 2008 10:56:05 +0000 (10:56 +0000)
committerbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Fri, 28 Nov 2008 10:56:05 +0000 (10:56 +0000)
  - Added sample/*.sh for command line samples.

changelog
sample/start-server.sh [new file with mode: 0755]
sample/stop-server.sh [new file with mode: 0755]

index d3531d4..e96ad30 100644 (file)
--- a/changelog
+++ b/changelog
@@ -1,3 +1,8 @@
+2008-11-27 Daigo Moriwaki <daigo at debian dot org>
+
+       * [shogi-server]
+         - Added sample/*.sh for command line samples.
+
 2008-11-24 Daigo Moriwaki <daigo at debian dot org>
 
        * [shogi-server]
diff --git a/sample/start-server.sh b/sample/start-server.sh
new file mode 100755 (executable)
index 0000000..318e0fd
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+ruby ./shogi-server --pid-file shogi-server.pid \
+                    --daemon . \
+                    --player-log-dir player-log-dir \
+                    --floodgate-history floodgate_history.yaml \
+                    floodgatetest 4000
diff --git a/sample/stop-server.sh b/sample/stop-server.sh
new file mode 100755 (executable)
index 0000000..40bff64
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+kill `cat shogi-server.pid`