How to ensure Single Cron Job Instance with flock in Red Hat Environments

Solution Verified - Updated -

Issue

  • Is it possible to run only one instance of cronjob at time
  • Multiple instances of cronjob is seen in process list and it is only supposed to spawn one instance at a time.

Environment

  • Red Hat Enterprise Linux
  • cronie
  • flock utility

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content