Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

fezfez/bin-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bin runner

run command in background and manage it.

This project is tagged WIP cause of the missing unit test and missing unix driver

Install

composer require fezfez/bin-runner

How to use

php server sample

start

vendor/bin/bin-runner start "php -S localhost:8887 -t public"
# Process created with alias "php"

Then you can go to localhost:8887, the php server is up

status

vendor/bin/bin-runner show

+-------+---------------------------------+------+------------+
| alias | command                         | pid  | is running |
+-------+---------------------------------+------+------------+
| php   | php -S localhost:8887 -t public | 1572 | 1          |
+-------+---------------------------------+------+------------+

stop by alias

vendor/bin/bin-runner stop php
# php stop successfully

stop by pid

vendor/bin/bin-runner stop 1572
# php stop successfully

stop all

vendor/bin/bin-runner stop 
# php stop successfully