Permalink
Browse files

Fixed stop script

Fixed stagecoach script

It works? Pinch me?
  • Loading branch information...
1 parent 2970bfe commit 72cfe69e2c797d094972eaf5a701be77f74f5828 @boutell boutell committed Apr 23, 2012
Showing with 10 additions and 5 deletions.
  1. +1 −1 sc-proxy/sc-stop-all
  2. +9 −4 sc-proxy/upstart/stagecoach.conf
@@ -7,6 +7,6 @@ source /opt/stagecoach/settings
for dir in `ls "$DIR/apps"`
do
echo "Stopping $dir"
- (su $USER -c "cd $DIR/$dir/current; bash deployment/stop")
+ (su $USER -c "cd $DIR/apps/$dir/current; bash deployment/stop")
done
@@ -1,5 +1,7 @@
#!upstart
-# Copy me to /etc/init/sc-proxy.conf
+#
+#Copy me to /etc/init/stagecoach.conf
+#Then you can 'start stagecoach' and 'stop stagecoach'
description "sc-proxy webapps and proxy server"
author "tom@punkave.com"
@@ -10,11 +12,14 @@ respawn
start on startup
stop on shutdown
+pre-start script
+ source /opt/stagecoach/sc-proxy/sc-start-all
+end script
+
script
- source /opt/stagecoach/sc-proxy/sc-start-all
- (cd /opt/stagecoach/sc-proxy; node `pwd`/server.js)
+ (cd /opt/stagecoach/sc-proxy; node `pwd`/server.js)
end script
pre-stop script
- source /opt/stagecoach/sc-proxy/sc-stop-all
+ source /opt/stagecoach/sc-proxy/sc-stop-all
end script

0 comments on commit 72cfe69

Please sign in to comment.