Skip to content

Commit

Permalink
add some script for unicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
IceskYsl committed Jun 25, 2012
1 parent 7ee9840 commit 531f45a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions db/mongod.start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rm -f /datas/dbs/monogdb/*.lock; mongod --dbpath /datas/dbs/monogdb/ --fork -logpath /var/log/mongodb.log --profile 1 --logappend --journal --pidfilepath /var/log/mongodb.pid --maxConns 10000 --rest --oplogSize 2048
1 change: 1 addition & 0 deletions db/unicorn.restart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_pid=`cat tmp/pids/unicorn.pid`; sudo kill -USR2 $_pid; sudo kill -QUIT $_pid; ps -ef | grep unicorn | grep master
1 change: 1 addition & 0 deletions db/unicorn.start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bundle exec unicorn_rails -c config/unicorn.rb -D
1 change: 1 addition & 0 deletions db/unicorn.stop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sudo kill -QUIT `cat tmp/pids/unicorn.pid`

0 comments on commit 531f45a

Please sign in to comment.