[Mongrel] Mongrel PID file permissions

François Beausoleil francois.beausoleil at gmail.com
Fri Oct 5 14:41:02 EDT 2007

Hi !

I'm using Mongrel 1.0.1 with --pid and --user/--group.  The PID files
are correctly owned by the user/group, but their permissions is 0666.
Is that normal ?  Shouldn't it be something like 0664 ?

Just curious to know if I'm wrong.

Configurator has this (line 77):

    # Writes the PID file but only if we're on windows.
    def write_pid_file
      if RUBY_PLATFORM !~ /mswin/
        log "Writing PID file to #{@pid_file}"
        open(@pid_file,"w") {|f| f.write(Process.pid) }

The comment's wrong, and we probably need a File.chmod call there
somewhere.  Should I submit a patch ?

Thanks !
François Beausoleil

More information about the Mongrel-users mailing list