# 'exec': Operation not supported

**URL:** <https://www.ruby-forum.com/t/exec-operation-not-supported/75183>\
**Category:** Ruby\
**Created:** [November 8, 2006, 1:54am UTC](https://www.ruby-forum.com/t/exec-operation-not-supported/75183 "2006-11-08T01:54:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [November 8, 2006, 1:54am UTC](https://www.ruby-forum.com/t/exec-operation-not-supported/75183/1 "2006-11-08T01:54:43Z")

</div>

I’m on Mac OS X / Powerbook and I’m trying to figure out why Mongrel  
doesn’t restart on it. When I do ‘mongrel\_rails restart’ (which  
reportedly works fine on other platforms, except Windows), I get this  
error in my log:

\*\* Restarting with arguments: /opt/local/bin/ruby  
/opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel\_rails  
start -d -p 3001  
/opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel\_rails:144:in  
`exec': Operation not supported - /opt/local/bin/ruby /opt/local/lib/ruby/gems/1.8/gems/mongrel-0 .3.13.4/bin/mongrel_rails start -d -p 3001 (Errno::EOPNOTSUPP) from /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:144:in`run’  
from  
/opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/command.rb:203:in  
`run’  
from  
/opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel\_rails:234

The restart code from Mongrel is:

```
    cmd = "ruby #{ __FILE__ } start #{original_args.join(' ')}"
    config.log "Restarting with arguments: #{cmd}"
    exec cmd

```

If I copy it into a new Ruby script (and changing cmd appropriately), it  
runs fine. Also, if I change “exec” to “system”, it works.

Anybody know what the problem might be?

Thanks,  
Joe

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [November 8, 2006, 10:10am UTC](https://www.ruby-forum.com/t/exec-operation-not-supported/75183/2 "2006-11-08T10:10:16Z")

</div>

Joe R. MUDCRAP-CE wrote:

> I’m on Mac OS X / Powerbook and I’m trying to figure out why Mongrel  
> doesn’t restart on it. When I do ‘mongrel\_rails restart’ (which

\> Anybody know what the problem might be? \> \> Thanks, \> Joe \> \> 

No, I don’t, but it might be a good idea to also ask on the Mongrel  
forums and/or mailing list (if you haven’t already).

-Justin
