CA API Gateway how do I perform an automatic daily reboot at a specific time of day
search cancel

CA API Gateway how do I perform an automatic daily reboot at a specific time of day

book

Article ID: 277164

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Some customers may have a requirement to automatically reboot for client apps concerns etc..

This is applicable on all gateway versions that utilize cron 9.x 10.x 11.x 

Resolution

Add the following crontab entry, and the system will restart every night.

# crontab -e
0 0 * * * /sbin/shutdown -r now

# crontab -l

 

Ref: Man page for cron

 

Time field allowed values
-----
--------------

minute

0-59

hour

0-23

day of month

1-31

month

1-12 (or names, see below)

day of week

0-7 (0 or 7 is Sun, or use names)