https://github.com/absszero/unicron
a unique process manager
https://github.com/absszero/unicron
Last synced: 2 months ago
JSON representation
a unique process manager
- Host: GitHub
- URL: https://github.com/absszero/unicron
- Owner: absszero
- Created: 2016-01-08T07:16:27.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-11-19T13:28:02.000Z (over 6 years ago)
- Last Synced: 2025-10-09T13:53:56.869Z (6 months ago)
- Language: PHP
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Unicron
A unique process manager
Managing processes by process ids and prevent duplicating processes.
## Installation
`composer require absszero/unicron`
## Usage
~~~php
use Absszero\Unicron\Unicron;
$unicron = new Unicron('YOUR_PROCESS_NAME');
if ($unicron->isRunning()) {
$unicron->kill();
}
$unicron->setPid();
~~~
## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
## History
TODO: Write history
## Credits
TODO: Write credits
## License
TODO: Write license