On Sun, 18 Jan 2009 13:08:06 -0800 Michael Olson <[email protected]> wrote:
> Adam Megacz <[email protected]> writes: > > > Kenneth Pronovici <[email protected]> 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: > > mwol...@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 _______________________________________________ HCoop-Help mailing list [email protected] https://lists.hcoop.net/listinfo/hcoop-help
