examples/tiny/ctl in nitro-0.1.2 vs examples/tiny/ctl in nitro-0.2.0

- old
+ new

@@ -1,30 +1,15 @@ #! /bin/sh ARGV="$@" case $ARGV in -start) - /usr/sbin/httpd -d `pwd` -f conf/apache.conf - ruby -C.. tiny/app.rb --start # --daemon - ERROR=$? - ;; -restart) - # restart appserver only! - export ASPID= `ps ax | grep app.rb | grep ruby | cut -d" " -f1` - if [ -n "$ASPID" ]; then - echo $ASPID - kill -9 $ASPID - fi - ruby -C.. tiny/app.rb --restart # --daemon - ERROR=$? - ;; stop) - killall -9 ruby httpd + killall -9 ruby ERROR=$? ;; *) - echo "NOP" + ruby -C.. tiny/app.rb --start # --daemon ERROR=$? esac exit $ERROR