{"id":33963432,"url":"https://github.com/thesebas/runlock","last_synced_at":"2026-05-28T12:33:41.156Z","repository":{"id":57068512,"uuid":"68787558","full_name":"thesebas/runlock","owner":"thesebas","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-28T09:25:13.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-14T11:20:01.039Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thesebas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-21T06:36:53.000Z","updated_at":"2016-09-21T07:05:39.000Z","dependencies_parsed_at":"2022-08-24T14:54:12.053Z","dependency_job_id":null,"html_url":"https://github.com/thesebas/runlock","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/thesebas/runlock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesebas%2Frunlock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesebas%2Frunlock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesebas%2Frunlock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesebas%2Frunlock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thesebas","download_url":"https://codeload.github.com/thesebas/runlock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesebas%2Frunlock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33609237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-12T22:38:43.540Z","updated_at":"2026-05-28T12:33:41.140Z","avatar_url":"https://github.com/thesebas.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# runlock\n\n## Help\n```\nrunlock \u003coptions\u003e\n    acquire/free lock\n\n    exit codes:\n    0 - lock acquired\n    1 - failed acquiring lock\n    2 - other error\n\nOptions:\n  -a, --action \u003carg\u003e      `lock`, `unlock` or `reset` [default: `lock`]\n  -l, --lockname \u003carg\u003e    lock name\n  -n, --count \u003carg\u003e       how many locks can be acquired [default: 1]\n  -d, --delay \u003carg\u003e       delay running script rand(0, n) seconds\n  -c, --config \u003carg\u003e      path to file with params in .ini format [default: /etc/runlock/config.ini]\n  -v, --verbose           verbose mode\n  -h, --help              show help\n```\n\n## How to install\n```bash\ncomposer global require thesebas/runlock:dev-master\n```\n\n## How to use\n\nIn `crontab` \n\n```crontab\n*/15 * * * * runlock -l lockname \u0026\u0026 (job_to_do.sh || runlock -a unlock -l lockname)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesebas%2Frunlock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesebas%2Frunlock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesebas%2Frunlock/lists"}