summaryrefslogtreecommitdiffstats
path: root/samples/services/nginx/docker/process
diff options
context:
space:
mode:
Diffstat (limited to 'samples/services/nginx/docker/process')
-rwxr-xr-xsamples/services/nginx/docker/process/grpc_process.sh12
-rwxr-xr-xsamples/services/nginx/docker/process/nginx_process.sh12
-rwxr-xr-xsamples/services/nginx/docker/process/start_process.sh15
3 files changed, 39 insertions, 0 deletions
diff --git a/samples/services/nginx/docker/process/grpc_process.sh b/samples/services/nginx/docker/process/grpc_process.sh
new file mode 100755
index 0000000..cc8aa60
--- /dev/null
+++ b/samples/services/nginx/docker/process/grpc_process.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+#
+# Copyright (c) Authors of Clover
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+
+python grpc/nginx_grpc_server.py $1
+
diff --git a/samples/services/nginx/docker/process/nginx_process.sh b/samples/services/nginx/docker/process/nginx_process.sh
new file mode 100755
index 0000000..00edc66
--- /dev/null
+++ b/samples/services/nginx/docker/process/nginx_process.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+#
+# Copyright (c) Authors of Clover
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+
+service nginx restart
+
diff --git a/samples/services/nginx/docker/process/start_process.sh b/samples/services/nginx/docker/process/start_process.sh
new file mode 100755
index 0000000..b84d2d6
--- /dev/null
+++ b/samples/services/nginx/docker/process/start_process.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+#
+# Copyright (c) Authors of Clover
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+
+# Start the nginx process
+./process/nginx_process.sh
+
+# Start the grpc server
+./process/grpc_process.sh $1 -D