[rancid] Re: launchd and rancid
2009 at tybox.net
Sun Jul 26 02:10:38 UTC 2009
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?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "
<string>user at domain.com</string>
On Sat, Jul 25, 2009 at 2:24 PM, Daniel Medina <daniel.medina at gmail.com>wrote:
> On Sat, Jul 25, 2009 at 10:14:53AM -0500, Josh Rogers wrote:
> > I'm trying to get launchd to start rancid daily, but have had a lot of
> > trouble (assuredly because of my inexperience with launchd). Launchd
> > is launching the process, and log files are being written as www (the
> > correct user), but when I look at the log file, this is at the top of
> > it:
> > Trying to get all of the configs.
> > can't read "env(HOME)": no such variable
> > I believe this is because the environment isn't set up properly. If I
> > run rancid-run from the command line (bash) "sudo -u www rancid-run"
> > it runs fine.
> What does
> $ launchctl export
> say? HOME is one of the variables that's usually set for you, EX:
> PATH="/usr/bin:/bin:/usr/sbin:/sbin"; export PATH;
> TMPDIR="/var/folders/0p/0pdl6kW0HyGu7FSWcApHrU+++TI/-Tmp-/"; export
> SHELL="/bin/bash"; export SHELL;
> HOME="/Users/medina"; export HOME;
> USER="medina"; export USER;
> LOGNAME="medina"; export LOGNAME;
> Optionally, you could make a shell springboard, EX:
> # debug env(HOME) setting problem
> export HOME
> /usr/bin/printenv > /tmp/printenv.log
> and then run that shell script from launchd.
> Daniel Medina
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rancid-discuss