Skip to navigation
How to create mongrel startup script
07.12.13
I ran "sudo update-rc.d -f mongrel defaults" to make it run on startup. #!/bin/bash # # chkconfig: - 85 15 # description: mongrel_script # RETVAL=0 case "$1" in start) mongrel_rails start -d --chdir /u/apps/snippets/current/ RETVAL=$? ;; stop) mongrel_rails stop --chdir /u/apps/snippets/current/ RETVAL=$? ;; restart) mongrel_rails restart --chdir /u/apps/snippets/current/ RETVAL=$? ;; *) echo "Usage: mongrel_script {start|stop|restart}" exit 1 ;; esac
Reply
Anonymous
How to create mongrel startup script
I ran "sudo update-rc.d -f mongrel defaults" to make it run on startup. #!/bin/bash # # chkconfig: - 85 15 # description: mongrel_script # RETVAL=0 case "$1" in start) mongrel_rails start -d --chdir /u/apps/snippets/current/ RETVAL=$? ;; stop) mongrel_rails stop --chdir /u/apps/snippets/current/ RETVAL=$? ;; restart) mongrel_rails restart --chdir /u/apps/snippets/current/ RETVAL=$? ;; *) echo "Usage: mongrel_script {start|stop|restart}" exit 1 ;; esac
07.12.13
Reply
Anonymous
Information Epoch 1732364855
Multiple programs can be composed together to perform more complex functions.
Home
Notebook
Contact us