Skip to content

A linux daemon that you can call scripts more frequently than once per minute. This is extremely stable and runs in production for a number of systems.

Notifications You must be signed in to change notification settings

homer6/frequent-cron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

frequent-cron is a linux daemon under the MIT License. It is designed to run crons by millisecond in linux. Calls to the script or commands block, meaning that if you have a 500ms frequent-cron and your script runs for 3 minutes, your script will run once every 3 minutes.

Dependencies

  • Boost 1.37 (apt-get install libboost-all-dev)
  • cmake 2.8.2 (apt-get install cmake)

Installation

Starting the Service (Simple)

  • ./frequent-cron --frequency=1000 --command="/usr/local/bin/php /home/ssperandeo/dev/homer6/frequent-cron/test.php"

Stopping the Service (Simple)

  • ps aux | grep frequent
  • kill 3423

Starting the Service (Using init.d)

  • sudo cp init_script.tpl /etc/init.d/frequent_service
  • edit "command", "frequency" and "pid-file" (make sure both the "command" and the "pid-file" are absolute paths)
  • sudo chmod ugo+x /etc/init.d/frequent_service
  • sudo update-rc.d frequent_service defaults (optional; will automatically restart this service on system restart)
  • sudo /etc/init.d/frequent_service start

Stopping the Service (Using init.d)

  • sudo /etc/init.d/frequent_service stop

About

A linux daemon that you can call scripts more frequently than once per minute. This is extremely stable and runs in production for a number of systems.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages