Skip to content
This repository was archived by the owner on May 23, 2022. It is now read-only.

Commit 8fc2ed7

Browse files
authored
Merge pull request #978 from edquist/SOFTWARE-5156.token-renewer-freq
doco how to modify the osg-token-renewer timer frequency (SOFTWARE-5156)
2 parents c6e7d65 + 785948b commit 8fc2ed7

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

docs/other/osg-token-renewer.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,31 @@ account = myclient1234
122122
token_path = /etc/osg/tokens/myclient1234.mytoken567.token
123123
```
124124

125+
### Adjusting token renewal frequency
126+
127+
It is possible to override the default `osg-token-renewer` systemd timer
128+
frequency for this service by creating a config override file under
129+
`/etc/systemd/system/osg-token-renewer.timer.d/`.
130+
131+
For example, to configure the token renewal service to run every 10 minutes,
132+
run the following:
133+
134+
```console
135+
root@host # cat << EOF > /etc/systemd/system/osg-token-renewer.timer.d/timer-frequency.conf
136+
[Timer]
137+
OnBootSec=10min
138+
OnUnitActiveSec=10min
139+
EOF
140+
root@host # systemctl daemon-reload
141+
```
142+
143+
!!! note
144+
Be aware that the default timer configuration also has a 3 minute random
145+
delay built in, via the parameter `RandomizedDelaySec=3min`.
146+
Thus setting the frequency to `10min` only guarantees runs every 13 minutes.
147+
This parameter is also configurable in the above systemd override file.
148+
149+
125150
Managing the OSG Token Renewal Service
126151
--------------------------------------
127152

0 commit comments

Comments
 (0)