| Last change
                  on this file since 2785 was
                  2066,
                  checked in by achernya, 14 years ago | 
        
          | Merge branches/fc15-dev to trunk | 
        | File size:
            477 bytes | 
      
      
        
  | Rev | Line |  | 
|---|
| [1] | 1 | #!/bin/sh | 
|---|
|  | 2 |  | 
|---|
|  | 3 | # This script renews afsagent's tickets and tokens. | 
|---|
| [2066] | 4 | # It is called by systemd on a regular schedule. | 
|---|
| [1] | 5 |  | 
|---|
| [201] | 6 | export KRB5CCNAME=/home/afsagent/krb5cc | 
|---|
|  | 7 | export KRBTKFILE=/home/afsagent/tkt | 
|---|
| [199] | 8 |  | 
|---|
| [1] | 9 | # Option #1: invoke kinit with a password | 
|---|
| [9] | 10 | #echo "password" | @kinit_path@ >/dev/null daemon/scripts.mit.edu | 
|---|
| [1] | 11 |  | 
|---|
|  | 12 | # Option #2: invoke kinit with a keytab | 
|---|
| [74] | 13 | @kinit_path@ -k -t /etc/daemon.keytab daemon/scripts.mit.edu | 
|---|
| [1] | 14 |  | 
|---|
|  | 15 | # Obtain AFS tokens | 
|---|
| [9] | 16 | @aklog_path@ | 
|---|
|  | 17 | @aklog_path@ -c sipb | 
|---|
| [1594] | 18 | @aklog_path@ -c csail | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.