summaryrefslogtreecommitdiffstats
path: root/Services/nodejs/sx
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2015-11-29 04:45:26 +0100
committerstartxfr <clarue@startx.fr>2015-11-29 04:45:26 +0100
commiteb3d88b10a0feb302a9fd1ec60a7a92caebb856c (patch)
treed5505c96ddd69b6c47cd00bb77f8de0b15012720 /Services/nodejs/sx
parent78d1d5017e8acbc8b4bb7f0f567d10f0e47a75df (diff)
downloadphpmyadmin-eb3d88b10a0feb302a9fd1ec60a7a92caebb856c.tar.gz
phpmyadmin-eb3d88b10a0feb302a9fd1ec60a7a92caebb856c.tar.bz2
phpmyadmin-eb3d88b10a0feb302a9fd1ec60a7a92caebb856c.tar.xz
phpmyadmin-eb3d88b10a0feb302a9fd1ec60a7a92caebb856c.zip
start reshaping nodejs service
Diffstat (limited to 'Services/nodejs/sx')
-rw-r--r--Services/nodejs/sx/nodejs.sh40
-rw-r--r--Services/nodejs/sx/nodejs_run.sh7
2 files changed, 0 insertions, 47 deletions
diff --git a/Services/nodejs/sx/nodejs.sh b/Services/nodejs/sx/nodejs.sh
deleted file mode 100644
index fcf3ebb..0000000
--- a/Services/nodejs/sx/nodejs.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/bash
-export TERM=dumb
-
-# Begin configuration before starting daemonized process
-# and start generating host keys
-function begin_config {
- echo "=> Begin nodejs configuration for host $HOSTNAME"
-}
-
-# End configuration process just before starting daemon
-function end_config {
- echo "=> End nodejs configuration ..."
-}
-
-# Start the nodejs server in background. Used to perform config
-# against the database structure such as user creation
-function start_server {
- echo "===> Starting nodejs server ..."
- node $MAIN_APP &
- sleep 4
-}
-
-# Stop the nodejs server running in background.
-function stop_server {
- echo "===> Stopping nodejs server ..."
- killall node
- sleep 4
-}
-
-# Start the nodejs server as a deamon and execute it inside
-# the running shell
-function start_daemon {
- echo "=> Starting nodejs daemon ..."
- exec node $MAIN_APP
-}
-
-
-if [[ "$0" == *"nodejs.sh" && ! $1 = "" ]];then
- eval "$@";
-fi \ No newline at end of file
diff --git a/Services/nodejs/sx/nodejs_run.sh b/Services/nodejs/sx/nodejs_run.sh
deleted file mode 100644
index 875dea2..0000000
--- a/Services/nodejs/sx/nodejs_run.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-source /sx/nodejs.sh
-
-begin_config
-end_config
-
-start_daemon \ No newline at end of file