I’m getting these errors when I set launch daemon to run ansible-pull, and it works well when I run the script directly in terminal.
Starting ansible-pull at 2015-08-27 11:46:47
localhost | FAILED >> {
“failed”: true,
“msg”: “Failed to find required executable git”
}
The launchd file looks like this:
<?xml version="1.0" encoding="UTF-8"?> Label com.myprogram.ansiblepull ProgramArguments {{ workdir }}/ansible-pull.sh StartInterval 600RunAtLoad
StandardOutPath
/var/ansible/log/ansiblepull.out
StandardErrorPath
/var/ansible/log/ansiblepull.err
The path to git is /usr/local/bin/git.
Thanks in advance!