[GH-ISSUE #643] Background client on start #502

Closed
opened 2026-05-05 12:19:42 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @travisghansen on GitHub (Feb 25, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/643

I'm looking to use the client in a CI environment. Ideally I'd be able to start the client and have it exit (cleanly or not) immediately so the subsequent series of commands could be run which an understanding of tunnel up/down. In my case backgrounding and doing a port check isn't super-helpful as I'm using the http type.

Originally created by @travisghansen on GitHub (Feb 25, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/643 I'm looking to use the client in a CI environment. Ideally I'd be able to start the client and have it exit (cleanly or not) immediately so the subsequent series of commands could be run which an understanding of tunnel up/down. In my case backgrounding and doing a port check isn't super-helpful as I'm using the http type.
Author
Owner

@fatedier commented on GitHub (Feb 26, 2018):

  1. Try nohup to let client run on background?
  2. Run frpc -c ./frpc.ini status and you can get all status of proxies.
<!-- gh-comment-id:368531058 --> @fatedier commented on GitHub (Feb 26, 2018): 1. Try `nohup` to let client run on background? 2. Run `frpc -c ./frpc.ini status` and you can get all status of proxies.
Author
Owner

@travisghansen commented on GitHub (Feb 27, 2018):

Yeah, I was looking into that. Not ideal but possible, thanks for the pointer.

<!-- gh-comment-id:368744387 --> @travisghansen commented on GitHub (Feb 27, 2018): Yeah, I was looking into that. Not ideal but possible, thanks for the pointer.
Author
Owner

@yanggis commented on GitHub (Feb 27, 2018):

try supervisor

<!-- gh-comment-id:368933192 --> @yanggis commented on GitHub (Feb 27, 2018): try supervisor
Author
Owner

@travisghansen commented on GitHub (Feb 28, 2018):

Thanks for the suggestion. Supervisor doesn't fit the need here really and would be overkill. I'm sure I can find a solution using nohup or the like...just would be nice to have a daemonize option that could exit non zero if tunnel(s) failed.

<!-- gh-comment-id:369113056 --> @travisghansen commented on GitHub (Feb 28, 2018): Thanks for the suggestion. Supervisor doesn't fit the need here really and would be overkill. I'm sure I can find a solution using nohup or the like...just would be nice to have a daemonize option that could exit non zero if tunnel(s) failed.
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#502
No description provided.