Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] Hostname problem, OSX 10.5
- Date: Thu, 4 Oct 2012 10:08:08 -0400
- From: Rich Pieri <ratinox@xxxxxxx>
- Subject: Re: [Condor-users] Hostname problem, OSX 10.5
On Thu, 4 Oct 2012 02:26:47 +0000
"Jewell, Chris" <C.P.Jewell@xxxxxxxxxxxx> wrote:
> If only. According to the Apple doc, launchd apparently delegates
> evaluation of dependencies to the daemon itself, cf. init or upstart
> on Linux...
Precisely. Launchd doesn't care. That's not its job. This is why I
suggested a wrapper around the condor_master startup. It's simple, easy
to maintain, easy to deploy, and is portable should it ever become
necessary. For example:
#!/bin/bash
for t in {1..9}; do
ping -c 1 -t `expr $t \* $t` 8.8.8.8 >/dev/null 2>&1 && \
exec /usr/local/bin/condor_master
done
A simple ping check, quiet, with an increasing backoff on tries until
either the specified IP returns a ping packet or the loop exits.
--
Rich Pieri <ratinox@xxxxxxx>
MIT Laboratory for Nuclear Science