#55 new
Jens

allow for user and group options in ferret_server.yml

Reported by Jens | February 13th, 2010 @ 12:38 AM

something like this (which Mongrel does)



# Change privilege of the process to specified user and group.
def change_privilege(user, group)
  begin
    if group
      log "Changing group to #{group}."
      Process::GID.change_privilege(Etc.getgrnam(group).gid)
    end

    if user
      log "Changing user to #{user}."
      Process::UID.change_privilege(Etc.getpwnam(user).uid)
    end
  rescue Errno::EPERM
    log "FAILED to change user:group #{user}:#{group}: #$!"
    exit 1
  end
end



might work.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Pages