mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #1242] [CLOSED] support system service of all platform #4346
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#4346
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?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/1242
Author: @ma6254
Created: 5/10/2019
Status: ❌ Closed
Base:
master← Head:master📝 Commits (3)
10af000support system service of all platform3cb1dddfix vendorcd0959bfix frps service init📊 Changes
194 files changed (+20477 additions, -1135 deletions)
View changed files
📝
cmd/frpc/sub/root.go(+19 -1)➕
cmd/frpc/sub/service.go(+115 -0)📝
cmd/frps/root.go(+19 -0)➕
cmd/frps/service.go(+130 -0)📝
go.mod(+3 -2)📝
go.sum(+30 -2)➕
vendor/github.com/kardianos/service/.gitignore(+0 -0)➕
vendor/github.com/kardianos/service/.travis.yml(+17 -0)➕
vendor/github.com/kardianos/service/LICENSE(+20 -0)➕
vendor/github.com/kardianos/service/README.md(+14 -0)➕
vendor/github.com/kardianos/service/appveyor.yml(+21 -0)➕
vendor/github.com/kardianos/service/console.go(+48 -0)➕
vendor/github.com/kardianos/service/go.mod(+5 -0)➕
vendor/github.com/kardianos/service/go.sum(+2 -0)➕
vendor/github.com/kardianos/service/linux-test-su.sh(+15 -0)➕
vendor/github.com/kardianos/service/service.go(+393 -0)➕
vendor/github.com/kardianos/service/service_darwin.go(+282 -0)➕
vendor/github.com/kardianos/service/service_go1.8.go(+15 -0)➕
vendor/github.com/kardianos/service/service_linux.go(+75 -0)➕
vendor/github.com/kardianos/service/service_systemd_linux.go(+251 -0)...and 80 more files
📄 Description
支持了全平台的服务注册和控制
Overview
使用了
github.com/kardianos/service,该库封装了各平台的底层service操作此库的
func Interactive() bool用来判断是否处于service状态下运行当检测到为service状态时
frpc从
$FRP_HOME/frpc.ini处读取配置文件frps则是
$FRP_HOME/frps.iniExample
Usage
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.