Advertisement
Guest User

Untitled

a guest
May 22nd, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. command=$1
  2.  
  3. case $command in
  4. "start")
  5. cd /usr/share/redmine/;
  6. bundle exec ruby script/rails server webrick -e production >> /var/log/redmine/log.log 2> /var/log/redmine/error.log &
  7. ;;
  8. "stop")
  9. pid=`cat /usr/share/redmine/tmp/pids/server.pid`;
  10. kill -9 $pid
  11. esac;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement