Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cleaned up role scripts in favor of using chef

  • Loading branch information...
commit 8faff30d19919f20a5b29a1e1ccf6d0f1a04178d 1 parent 348db30
@kelvl kelvl authored
View
17 scripts/init.d/shadow
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-set -e
-
-case "$1" in
- start)
- sv up shadow
- ;;
- stop)
- sv stop shadow
- ;;
- restart)
- sv reload shadow
- ;;
- *)
- ;;
-esac
View
56 scripts/rc.twilio/shadow
@@ -1,56 +0,0 @@
-#!/bin/bash
-# role for shadow
-
-set -e
-
-source /usr/local/sbin/logging-functions
-source /usr/local/sbin/logfile-functions
-source /usr/local/sbin/daemon-functions
-
-src=/usr/local/src/shadow
-env=/usr/local/python-environments/shadow-virtualenv
-
-start()
-{
- log_info "configuring shadow role."
-
- ############################ VIRTUALENV ############################
-
- $src/scripts/make_virtualenv.sh $env
- . $env/bin/activate
-
- if [[ -d /service/shadow ]]
- then
- ! sv reload shadow; sv up shadow
- else
- runit_service_create shadow nobody "${env}/bin/ginkgo $src/shadow.conf.py"
- while ! pgrep -x -f "runsv shadow" > /dev/null; do sleep 1; done
- fi
- sv stop shadow
-
- cp $src/scripts/init.d/shadow /etc/init.d/
-
- log_info "done."
-
- log_info "shadow service is created, but you have to start it yourself after modifying $src/shadow.conf.py"
-}
-
-stop()
-{
- if [[ -d /service/shadow ]]; then ! sv stop shadow; fi
-}
-
-case "$1" in
- start)
- start
- ;;
- stop)
- stop
- ;;
- restart)
- stop
- start
- ;;
- *)
- ;;
-esac
View
4 shadow.conf.py
@@ -22,8 +22,8 @@
}
# Daemon params
-#chroot = "/var/shadow"
-#user = "nobody"
+chroot = "/mnt/services/shadow/chroot"
+user = "nobody"
#logfile = "/var/log/twilio/shadow-gservice.log"
#pidfile = "/var/run/shadow.pid"
View
2  tests/scripts/build.sh
@@ -1,3 +1,3 @@
dir=$(cd $(dirname $0)/../../; pwd)
-$dir/scripts/make_virtualenv.sh _env testing
+$dir/tests/scripts/make_virtualenv.sh _env testing
Please sign in to comment.
Something went wrong with that request. Please try again.