Fix check for crontab
The following commands edit keystone's cron table, so check keystone's and not root's cron table first. Change-Id: Ib2966d4358a2cb697e8c124c910712aabd024c11 Backport: icehouse Closes-Bug: #1322342
This commit is contained in:
parent
d79b577ec0
commit
c5e786718b
@ -217,11 +217,11 @@ log_dir = /var/log/keystone</programlisting>
|
||||
<para>Run the following command to purge expired tokens every
|
||||
hour and log the output to
|
||||
<filename>/var/log/keystone/keystone-tokenflush.log</filename>:</para>
|
||||
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>(crontab -l 2>&1 | grep -q token_flush) || \
|
||||
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>(crontab -l -u keystone 2>&1 | grep -q token_flush) || \
|
||||
echo '@hourly /usr/bin/keystone-manage token_flush >/var/log/keystone/keystone-tokenflush.log 2>&1' >> /var/spool/cron/crontabs/keystone</userinput></screen>
|
||||
<screen os="rhel;centos;fedora"><prompt>#</prompt> <userinput>(crontab -l 2>&1 | grep -q token_flush) || \
|
||||
<screen os="rhel;centos;fedora"><prompt>#</prompt> <userinput>(crontab -l -u keystone 2>&1 | grep -q token_flush) || \
|
||||
echo '@hourly /usr/bin/keystone-manage token_flush >/var/log/keystone/keystone-tokenflush.log 2>&1' >> /var/spool/cron/keystone</userinput></screen>
|
||||
<screen os="opensuse;sles"><prompt>#</prompt> <userinput>(crontab -l 2>&1 | grep -q token_flush) || \
|
||||
<screen os="opensuse;sles"><prompt>#</prompt> <userinput>(crontab -l -u keystone 2>&1 | grep -q token_flush) || \
|
||||
echo '@hourly /usr/bin/keystone-manage token_flush >/var/log/keystone/keystone-tokenflush.log 2>&1' >> /var/spool/cron/tabs/keystone</userinput></screen>
|
||||
</step>
|
||||
</substeps>
|
||||
|
Loading…
x
Reference in New Issue
Block a user