Skip to content

Commit 7009c58

Browse files
committed
0.1.2
1 parent a3c1528 commit 7009c58

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ $ composer require "rulong/laravel-socket:~0.1.0"
77
```
88

99
## 2.启动
10+
--d 为deamon模式
1011
```
1112
$ php artisan workman start {--d}
1213
```
14+
15+
## 3.停止
16+
只有deamon模式下可用
17+
```
18+
$ php artisan workman stop
19+
```
20+
21+
重启 restart
22+
平滑重启 reload
23+
查看状态 status
24+
查看链接 connections

src/stubs/event.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Events
1111
* 服务启动
1212
* @Author:<C.Jason>
1313
* @Date:2018-06-20T12:47:12+0800
14-
* @param BusinessWorker $businessWorker
14+
* @param Worker $businessWorker
1515
*/
1616
public static function onWorkerStart(Worker $businessWorker)
1717
{
@@ -66,7 +66,7 @@ class Events
6666
* 服务器停止
6767
* @Author:<C.Jason>
6868
* @Date:2018-06-20T12:51:51+0800
69-
* @param BusinessWorker $businessWorker
69+
* @param Worker $businessWorker
7070
*/
7171
public static function onWorkerStop(Worker $businessWorker)
7272
{

0 commit comments

Comments
 (0)