mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #2918] Cannot start frpc with systemctl #2323
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#2323
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 @sgpublic on GitHub (Apr 29, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2918
Bug Description
I'm running frpc with systemctl on CentOS 8.5, I copied
frpc.serviceandfrpc@.serviceto the path of/usr/lib/systemd/system/, andfrpc.inito the path of/etc/frp/frpc.ini, then I run commandsystemctl start frpc, but it seems failed to start,systemctl status frpcshows:But frpc can be start successfully with command
/usr/bin/frpc -c /etc/frp/frpc.ini.I‘m sorry about that I have no idea with how to find any other log, so how can I solve it? Thanks adcanced.
frpc Version
0.42.0
frps Version
0.42.0
System Architecture
linux/amd64
Configurations
frps.ini
frpc.ini
Logs
No response
Steps to reproduce
...
Affected area
@fatedier commented on GitHub (Apr 29, 2022):
You'd better write your own service file. We will remove these files in future release.
@penguine commented on GitHub (May 17, 2022):
have you the correct user in frp.service? normally the script works. you only need the frpc.service file.
@github-actions[bot] commented on GitHub (Jun 17, 2022):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
@ututono commented on GitHub (Jun 2, 2023):
Hi. I met the same issue as yours. Have you solve it or any idea?
@sgpublic commented on GitHub (Jun 2, 2023):
Hi! This is my service file, and you can replace
ExecStartwith your own:@ututono commented on GitHub (Jun 2, 2023):
Thank for your prompt reply. It turns out that the
ExectStartwas wrong in my config file. It runs well now.@sealionking commented on GitHub (Jun 3, 2023):
it works after setting the authentication config according the frps.ini
without setting it,the frpc.service failed.