Hit "Send too soon", more below:
On Thu, Apr 14, 2011 at 8:51 AM, Marius Mårnes Mathiesen <
marius.mathie...@gmail.com> wrote:

> I can see a few potential problems with using this script:
> - The use of /bin/su - git isn't required, since Monit will do this for you
> ("as uid git and gid git")
> - Monit uses exec IIRC, so you'll need a shell to run it
> - PATH isn't set up correctly
>
> We use a separate control script that's called from Monit, like this:
>
> #!/bin/bash
>
> cd $GITORIOUS_ROOT
> /usr/bin/env PATH=<at least the path to Ruby>:$PATH RAILS_ENV=production
> HOME=<git user's home> bundle exec script/poller $1
>
> And then call it like this from Monit:
>
> start program = "<path_to_above_script> start start" as uid git and gid
> git
>

Cheers,
- Marius



-- 
Marius Mårnes Mathiesen
Rubyist, Shortcut AS
Tel.: (+47) 92 60 95 38.

http://shortcut.no

-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com

Reply via email to