[HCoop-Help] k5start: Connection timed out
Davor Ocelic
docelic at hcoop.net
Sun Jan 18 17:17:40 EST 2009
On Sun, 18 Jan 2009 13:08:06 -0800
Michael Olson <mwolson at hcoop.net> wrote:
> Adam Megacz <megacz at hcoop.net> writes:
>
> > Kenneth Pronovici <pronovic at ieee.org> writes:
> >> rm: cannot remove
> >> `/afs/hcoop.net/user/p/pr/pronovic/.run/mailrescue.pid': Connection
> >> timed out
> >
> > Mwolson, this seems to be emanating from your run-in-pagsh script.
> > Any ideas?
>
> Something similar happens even when using straight k5start (which I've
> been doing for the past two months). The script I use is:
>
> mwolson at mire:~$ cat ~/scripts/cron-task ; echo EOF
> #!/bin/sh
>
> exec k5start -qtUf /etc/keytabs/user.daemon/mwolson -- $@
> EOF
>
> Typical error I get from email is:
>
> /bin/sh: /afs/hcoop.net/user/m/mw/mwolson/scripts/cron-task:
> Connection timed out
I've been using the following approach without seeing any error:
In `crontab -e`:
0 */5 * * * ~/bin/interchange -r
And in actual ~/bin/interchange:
#!/usr/bin/pagsh.openafs
# Only adjust the following 3 lines
K5PID=/afs/hcoop.net/user/d/do/docelic/pidfiles/k49ic.pid
KTAB=/etc/keytabs/user.daemon/docelic
CMD="/afs/hcoop.net/user/d/do/docelic/interchange/bin/interchange $*"
# Terminate current k5start process, if one is running.
test -e "$K5PID" && kill `cat -- "$K5PID"`
# Start fresh k5start daemon which will be refreshing tickets every 540
min /usr/bin/k5start -U -b -K 540 -t -p "$K5PID" -f "$KTAB"
# Run actual service with arguments as provided on command line
$CMD
More information about the HCoop-Help
mailing list