mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #378] 建议client端增加运行时创建pid file功能的选项 #276
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#276
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Jun 23, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/378
如题,这样会方便编写一些运行脚本和systemd service,谢谢。
@fatedier commented on GitHub (Jun 23, 2017):
supervisor?
@ghost commented on GitHub (Jun 23, 2017):
linux下,就是在frpc每次启动时,当前目录会增加一个frpc.pid,里面记录了frpc进程的pid号。
很多程序都有的功能,具体编程上怎么描述,小白不知道怎么说....
@fatedier commented on GitHub (Jun 23, 2017):
建议用 supervisor 管理。
这不是这个项目的需求。
@wxlg1117 commented on GitHub (Jun 24, 2017):
既然是血shell,那自己用脚本捕捉也可以啊
ps -ef | grep frpc | grep '.ini' | awk '{print $2}'
@1oo1 commented on GitHub (Jun 28, 2017):
楼上的脚本改成这个可以通用其他
ps -ef | grep frpc | grep -v grep | awk '{print $2}'