[GH-ISSUE #378] 建议client端增加运行时创建pid file功能的选项 #276

Closed
opened 2026-05-05 12:04:49 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @ghost on GitHub (Jun 23, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/378

如题,这样会方便编写一些运行脚本和systemd service,谢谢。

Originally created by @ghost on GitHub (Jun 23, 2017). Original GitHub issue: https://github.com/fatedier/frp/issues/378 如题,这样会方便编写一些运行脚本和systemd service,谢谢。
Author
Owner

@fatedier commented on GitHub (Jun 23, 2017):

supervisor?

<!-- gh-comment-id:310645410 --> @fatedier commented on GitHub (Jun 23, 2017): supervisor?
Author
Owner

@ghost commented on GitHub (Jun 23, 2017):

linux下,就是在frpc每次启动时,当前目录会增加一个frpc.pid,里面记录了frpc进程的pid号。
很多程序都有的功能,具体编程上怎么描述,小白不知道怎么说....

<!-- gh-comment-id:310646240 --> @ghost commented on GitHub (Jun 23, 2017): linux下,就是在frpc每次启动时,当前目录会增加一个frpc.pid,里面记录了frpc进程的pid号。 很多程序都有的功能,具体编程上怎么描述,小白不知道怎么说....
Author
Owner

@fatedier commented on GitHub (Jun 23, 2017):

建议用 supervisor 管理。

这不是这个项目的需求。

<!-- gh-comment-id:310647064 --> @fatedier commented on GitHub (Jun 23, 2017): 建议用 supervisor 管理。 这不是这个项目的需求。
Author
Owner

@wxlg1117 commented on GitHub (Jun 24, 2017):

既然是血shell,那自己用脚本捕捉也可以啊
ps -ef | grep frpc | grep '.ini' | awk '{print $2}'

<!-- gh-comment-id:310828563 --> @wxlg1117 commented on GitHub (Jun 24, 2017): 既然是血shell,那自己用脚本捕捉也可以啊 ps -ef | grep frpc | grep '.ini' | awk '{print $2}'
Author
Owner

@1oo1 commented on GitHub (Jun 28, 2017):

楼上的脚本改成这个可以通用其他 ps -ef | grep frpc | grep -v grep | awk '{print $2}'

<!-- gh-comment-id:311563949 --> @1oo1 commented on GitHub (Jun 28, 2017): 楼上的脚本改成这个可以通用其他 `ps -ef | grep frpc | grep -v grep | awk '{print $2}'`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#276
No description provided.