summaryrefslogtreecommitdiffstats
path: root/Services/apache/sx
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2015-11-28 14:13:04 +0100
committerstartxfr <clarue@startx.fr>2015-11-28 14:13:04 +0100
commit18a451ed0758a4f9736fd4ac68d3c51e4ea8d773 (patch)
tree1db11041c2bb05c4a50037d17b58e7024e0ee289 /Services/apache/sx
parent060ad50936e6e1cf59a3de46cc088a98a5682bea (diff)
downloadphpmyadmin-18a451ed0758a4f9736fd4ac68d3c51e4ea8d773.tar.gz
phpmyadmin-18a451ed0758a4f9736fd4ac68d3c51e4ea8d773.tar.bz2
phpmyadmin-18a451ed0758a4f9736fd4ac68d3c51e4ea8d773.tar.xz
phpmyadmin-18a451ed0758a4f9736fd4ac68d3c51e4ea8d773.zip
change in os startup
Diffstat (limited to 'Services/apache/sx')
-rw-r--r--Services/apache/sx/httpd.sh50
-rw-r--r--Services/apache/sx/httpd_run.sh7
2 files changed, 0 insertions, 57 deletions
diff --git a/Services/apache/sx/httpd.sh b/Services/apache/sx/httpd.sh
deleted file mode 100644
index 0220984..0000000
--- a/Services/apache/sx/httpd.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/bash
-
-export TERM=dumb
-export HTTPDCONF=/etc/httpd/conf.d/sx.conf
-
-# Begin configuration before starting daemonized process
-# and start generating host keys
-function begin_config {
- echo "=> Begin httpd configuration for host $HOSTNAME"
- mkdir -p /var/run/httpd
- if [ -z "$DOCROOT" ]; then
- echo "===> Changing document root to $DOCROOT"
- ${DOCROOT=/var/www/html}
- echo "DocumentRoot \"$DOCROOT\"" >> $HTTPDCONF
- fi
-}
-
-# End configuration process just before starting daemon
-function end_config {
- stop_server
- echo "=> End httpd configuration ..."
-}
-
-# Start the httpd server in background. Used to perform config
-# against the database structure such as user creation
-function start_server {
- echo "===> Starting httpd server ..."
- /usr/sbin/apachectl &
- sleep 8
-}
-
-# Stop the httpd server running in background.
-function stop_server {
- echo "===> Stopping httpd server ..."
- killall httpd
- rm -rf /run/httpd/*
- sleep 8
-}
-
-# Start the httpd server as a deamon and execute it inside
-# the running shell
-function start_daemon {
- echo "=> Starting httpd daemon ..."
- exec /usr/sbin/apachectl -D FOREGROUND
-}
-
-
-if [[ "$0" == *"httpd.sh" && ! $1 = "" ]];then
- eval "$@";
-fi \ No newline at end of file
diff --git a/Services/apache/sx/httpd_run.sh b/Services/apache/sx/httpd_run.sh
deleted file mode 100644
index ef073a3..0000000
--- a/Services/apache/sx/httpd_run.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-source /sx/httpd.sh
-
-begin_config
-end_config
-
-start_daemon \ No newline at end of file