[rancid] Re: launchd and rancid
2009 at tybox.net
Sun Jul 26 21:31:17 UTC 2009
Using your springboard script did the trick. Thanks so much for the help,
I've been struggling w/this for a bit now.
Ogden Nash <http://www.brainyquote.com/quotes/authors/o/ogden_nash.html> -
"The trouble with a kitten is that when it grows up, it's always a cat."
On Sun, Jul 26, 2009 at 6:50 AM, Daniel Medina <daniel.medina at gmail.com>wrote:
> On Sat, Jul 25, 2009 at 09:09:50PM -0500, Josh Rogers wrote:
> > So, when I run launchctl export as any user, I see the $HOME var set
> > correctly, but as root it ONLY includes $PATH.
> > This should be no big deal since I'm running the plist as www.
> > Here is the plist (I'm new to launchd, so this may be completely wrong).
> > its currently disabled because its not running correctly, but other than
> > that, can you see anything wrong with it that would cause my problem?
> I would strongly suggest wrapping up what you have in a shell springboard,
> $ cat rancid-springboard.sh
> export HOME
> # Test what we have in our env
> printenv > /tmp/rancid-springboard.log
> /opt/local/libexec/rancid/rancid-run -m user at domain.com
> and then replace ProgramArguments in your plist. This way you have a bit
> more control over the env outside of whatever launchd is doing.
> Let me know how it goes...
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "
> > http://www.apple.com/DTDs/PropertyList-1.0.dtd">
> > <plist version="1.0">
> > <dict>
> > <key>Disabled</key>
> > <true/>
> > <key>Label</key>
> > <string>Rancid</string>
> > <key>Nice</key>
> > <integer>1</integer>
> > <key>OnDemand</key>
> > <false/>
> > <key>ProgramArguments</key>
> > <array>
> > <string>/bin/sh</string>
> > <string>-c</string>
> > <string>/opt/local/libexec/rancid/rancid-run</string>
> > <string>-m</string>
> > <string>user at domain.com</string>
> > </array>
> > <key>StartCalendarInterval</key>
> > <dict>
> > <key>Hour</key>
> > <integer>6</integer>
> > <key>Minute</key>
> > <integer>26</integer>
> > </dict>
> > <key>StartInterval</key>
> > <integer>43200</integer>
> > <key>UserName</key>
> > <string>www</string>
> > </dict>
> > </plist>
> Daniel Medina
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rancid-discuss