Rename spawn -> spawning
http://github.com/rtyler/Spawning/issues#issue/8 Change-Id: Ia2459a9cbdff26a0f74994ed40d46d97fac77270
This commit is contained in:
parent
353c023d4f
commit
9fac09370b
|
@ -2,7 +2,7 @@
|
|||
# Copyright 2009 Ludvig Ericson
|
||||
# Distributed under the terms of the 3-clause BSD license
|
||||
|
||||
[[ -z "${SPAWN_BIN}" ]] && SPAWN_BIN="$(which spawn)"
|
||||
[[ -z "${SPAWN_BIN}" ]] && SPAWN_BIN="$(which spawning)"
|
||||
PIDFILE="/var/run/${SVCNAME}.pid"
|
||||
|
||||
opts="${opts} reload"
|
||||
|
@ -12,13 +12,13 @@ depend() {
|
|||
}
|
||||
|
||||
check_params() {
|
||||
if [[ "${SVCNAME}" == "spawn" && -z "${I_KNOW}" ]]; then
|
||||
if [[ "${SVCNAME}" == "spawning" && -z "${I_KNOW}" ]]; then
|
||||
ewarn "It is highly recommended to use a symbolic link for this"
|
||||
ewarn "script and start via that instead. This allows you to run"
|
||||
ewarn "multiple spawn services simultaneously. To do this, simply:"
|
||||
ewarn
|
||||
ewarn " ln -s /etc/init.d/spawn /etc/init.d/spawn.mysvc"
|
||||
ewarn " cp /etc/conf.d/spawmn /etc/conf.d/spawn.mysvc"
|
||||
ewarn " ln -s /etc/init.d/spawning /etc/init.d/spawning.mysvc"
|
||||
ewarn " cp /etc/conf.d/spawning /etc/conf.d/spawning.mysvc"
|
||||
ewarn
|
||||
ewarn "If you don't want to be bothered by this message, set I_KNOW=yes"
|
||||
ewarn "in your configuration file."
|
||||
|
@ -26,7 +26,7 @@ check_params() {
|
|||
fi
|
||||
|
||||
if [[ -z "${SPAWN_BIN}" ]]; then
|
||||
eerror "Couldn't find spawn binary and no explicit"
|
||||
eerror "Couldn't find spawning binary and no explicit"
|
||||
eerror "path set in configuration file."
|
||||
return 1
|
||||
fi
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
### BEGIN INIT INFO
|
||||
# Provides: spawn.debian
|
||||
# Provides: spawning.debian
|
||||
# Required-Start: $all
|
||||
# Required-Stop: $all
|
||||
# Default-Start: 2 3 4 5
|
||||
|
@ -12,7 +12,7 @@
|
|||
|
||||
# Usage instructions:
|
||||
# - Copy this file to your /etc/init.d directory:
|
||||
# $ sudo cp spawn.debian /etc/init.d/spawn.mysite
|
||||
# $ sudo cp spawning.debian /etc/init.d/spawning.mysite
|
||||
# - Change the options below in the "Configuration" section.
|
||||
# Spawning arguments currently supported are:
|
||||
# - host (defaults to 127.0.0.1)
|
||||
|
@ -26,18 +26,18 @@
|
|||
# max-age, watch, workers etc., add them as follows:
|
||||
# EXTRA_ARGS="max-age=1000 --watch=file" etc.
|
||||
# - Initialise the script to survive reboots:
|
||||
# $ sudo update-rc.d spawn.mysite defaults
|
||||
# $ sudo update-rc.d spawning.mysite defaults
|
||||
# - Start your server:
|
||||
# $ sudo /etc/init.d/spawn.mysite start
|
||||
# $ sudo /etc/init.d/spawning.mysite start
|
||||
|
||||
NAME="spawn.debian" # change debian to your own site
|
||||
NAME="spawning.debian" # change debian to your own site
|
||||
DESC="Starts a Spawning daemon to run [domain here]"
|
||||
# This is where your app or settings.py lives
|
||||
SITE_DIR=/var/www/mysite/
|
||||
|
||||
# CONFIGURATION - edit this stuff
|
||||
# Configure your own spawning here
|
||||
SPAWNING_BIN=/usr/local/bin/spawn #Path to Spawning executable
|
||||
SPAWNING_BIN=/usr/local/bin/spawning #Path to Spawning executable
|
||||
PROCESSES=2 # Number of processes to spawn
|
||||
# Django by default: delete this var to run a WSGI app
|
||||
FACTORY="spawning.django_factory.config_factory"
|
Loading…
Reference in New Issue