2017 © Pedro Peláez
 

project runlock

image

thesebas/runlock

  • Thursday, September 28, 2017
  • by thesebas
  • Repository
  • 1 Watchers
  • 0 Stars
  • 766 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 6 % Grown

The README.md

runlock

Help

runlock <options>
    acquire/free lock

    exit codes:
    0 - lock acquired
    1 - failed acquiring lock
    2 - other error

Options:
  -a, --action <arg>      `lock`, `unlock` or `reset` [default: `lock`]
  -l, --lockname <arg>    lock name
  -n, --count <arg>       how many locks can be acquired [default: 1]
  -d, --delay <arg>       delay running script rand(0, n) seconds
  -c, --config <arg>      path to file with params in .ini format [default: /etc/runlock/config.ini]
  -v, --verbose           verbose mode
  -h, --help              show help

How to install

composer global require thesebas/runlock:dev-master

How to use

In crontab, (*1)

*/15 * * * * runlock -l lockname && (job_to_do.sh || runlock -a unlock -l lockname)

The Versions

28/09 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar thesebas

28/09 2017

1.1.0

1.1.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar thesebas

10/10 2016

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar thesebas