# Juggernaut question

**URL:** <https://www.ruby-forum.com/t/juggernaut-question/174083>\
**Category:** Rails\
**Created:** [August 20, 2009, 4:53pm UTC](https://www.ruby-forum.com/t/juggernaut-question/174083 "2009-08-20T16:53:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pimeamark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/9e8a1a/32.png) [@pimeamark](https://www.ruby-forum.com/u/pimeamark)\
**Post date:** [August 20, 2009, 4:53pm UTC](https://www.ruby-forum.com/t/juggernaut-question/174083/1 "2009-08-20T16:53:02Z")

</div>

Hi all, I’ve recently downloaded the juggernaut plugin and I was  
wondering if I could get some advice from anyone who’s used this on a  
real site. I have it working just fine on my local version, but on my  
live server it doesn’t seem to be working. It sends the information to  
the server just fine, but the text doesn’t get inserted. So I have a  
couple questions

1. Do I need to talk to my webhost about opening a specific port? right  
now it’s set as the default: 5001.

2. How do you keep the juggernaut server constantly running? right now I  
just do it in the terminal.

Any help would be greatly appreciated. thanks 🙂

---

<div class="post-metadata">

**Author:** ![pimeamark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/9e8a1a/32.png) [@pimeamark](https://www.ruby-forum.com/u/pimeamark)\
**Post date:** [August 20, 2009, 9:26pm UTC](https://www.ruby-forum.com/t/juggernaut-question/174083/2 "2009-08-20T21:26:48Z")

</div>

Hi,

On Aug 20, 4:53 pm, Mark Mr [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 1. Do I need to talk to my webhost about opening a specific port? right  
> now it’s set as the default: 5001.

Can you `telnet your_host 5001`? If not - probably this port is  
blocked and you need to ask your hosting provider for help.

> 1. How do you keep the juggernaut server constantly running? right now I  
> just do it in the terminal.

The best and the only reliable way is to write a small shell script  
like this:

#!/bin/sh  
until nohup /path/to/your/ruby /usr/bin/juggernaut; do  
echo “Juggernaut crashed with exit code $?. Respawning…” \>\>  
some\_log\_file  
sleep 1  
done

This script will restart juggernaut everytime it crashes.
