Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (8eb87824344861a2e663f88bc5a2a7de0bb057e4)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Pavel Vinogradov <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (8eb87824344861a2e663f88bc5a2a7de0bb057e4)
  • Date: Thu, 30 Jun 2016 02:21:40 +0000

GIT changes to master grimoire by Pavel Vinogradov <public AT sourcemage.org>:

http/uwsgi/FINAL | 6 ++++++
http/uwsgi/HISTORY | 5 +++++
http/uwsgi/INSTALL | 5 ++++-
http/uwsgi/init.d/uwsgi-emperor | 11 +++++++++++
4 files changed, 26 insertions(+), 1 deletion(-)

New commits:
commit 8eb87824344861a2e663f88bc5a2a7de0bb057e4
Author: Pavel Vinogradov <public AT sourcemage.org>
Commit: Pavel Vinogradov <public AT sourcemage.org>

http/uwsgi: added init script + instruction in FINAL

diff --git a/http/uwsgi/FINAL b/http/uwsgi/FINAL
new file mode 100755
index 0000000..fd55ae2
--- /dev/null
+++ b/http/uwsgi/FINAL
@@ -0,0 +1,6 @@
+if [[ ${INIT_INSTALLED} ]] ; then
+ message "${MESSAGE_COLOR}Place your application configuration files in " \
+ "${DEFAULT_COLOR}${TRACK_ROOT}/etc/${SPELL}${MESSAGE_COLOR}.\n" \
+ "${SPELL_COLOR}${SPELL}${MESSAGE_COLOR} in \"emperor\" mode will
pick " \
+ "them up immediately.${DEFAULT_COLOR}"
+fi
diff --git a/http/uwsgi/HISTORY b/http/uwsgi/HISTORY
index 7accc3d..57c743c 100644
--- a/http/uwsgi/HISTORY
+++ b/http/uwsgi/HISTORY
@@ -1,3 +1,8 @@
+2016-06-29 Pavel Vinogradov <public AT sourcemage.org>
+ * init.d/uwsgi-emperor: added init script for "emperor" mode of uwsgi
+ * INSTALL: mkdir -p /etc/uwsgi if needed
+ * FINAL: added to print a message about application configs
+
2016-06-28 Pavel Vinogradov <public AT sourcemage.org>
* BUILD, DEPENDS, DETAILS, INSTALL: spell created

diff --git a/http/uwsgi/INSTALL b/http/uwsgi/INSTALL
index a32fe3b..8069d2e 100755
--- a/http/uwsgi/INSTALL
+++ b/http/uwsgi/INSTALL
@@ -4,4 +4,7 @@ mkdir -p ${PLUGIN_DIR} &&
find ${SOURCE_DIRECTORY}/ -name \*plugin.so -exec install -m 0755 '{}'
${PLUGIN_DIR} \;
SITE_DIR=$(${PYTHON} -c "from distutils.sysconfig import
get_python_lib;print(get_python_lib())") &&
install -Dm644 uwsgidecorators.py ${SITE_DIR}/uwsgidecorators.py
-${PYTHON} -m py_compile ${SITE_DIR}/uwsgidecorators.py
+${PYTHON} -m py_compile ${SITE_DIR}/uwsgidecorators.py &&
+if [[ ${INIT_INSTALLED} ]] ; then
+ mkdir -p ${INSTALL_ROOT}/etc/${SPELL}
+fi
diff --git a/http/uwsgi/init.d/uwsgi-emperor b/http/uwsgi/init.d/uwsgi-emperor
new file mode 100644
index 0000000..c04c33b
--- /dev/null
+++ b/http/uwsgi/init.d/uwsgi-emperor
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+PIDFILE=/var/run/uwsgi-emperor.pid
+LOGFILE=/var/log/uwsgi-emperor.log
+VASSALS_DIR=/etc/uwsgi
+PROGRAM=/usr/bin/uwsgi
+ARGS="--emperor ${VASSALS_DIR} --pidfile ${PIDFILE} --daemonize ${LOGFILE}
--die-on-term"
+RUNLEVEL=3
+NEEDS="+network +remote_fs"
+
+. /etc/init.d/smgl_init



  • [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (8eb87824344861a2e663f88bc5a2a7de0bb057e4), Pavel Vinogradov, 06/29/2016

Archive powered by MHonArc 2.6.24.

Top of Page