[GH-ISSUE #4127] How can I restart the frps server on ubuntu every hour? #3257

Closed
opened 2026-05-05 14:06:08 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @bannyhm on GitHub (Apr 4, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4127

Describe the feature request

How can I restart the frps server on ubuntu automatically every hour?

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @bannyhm on GitHub (Apr 4, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4127 ### Describe the feature request How can I restart the frps server on ubuntu automatically every hour? ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:06:08 -06:00
Author
Owner

@xqzr commented on GitHub (Apr 6, 2024):

crontab -e
0 * * * * systemctl restart frps

不过,我很好奇 为什么要这么做

<!-- gh-comment-id:2041030039 --> @xqzr commented on GitHub (Apr 6, 2024): ```shell crontab -e ``` ``` 0 * * * * systemctl restart frps ``` 不过,我很好奇 为什么要这么做
Author
Owner

@bannyhm commented on GitHub (Apr 8, 2024):

crontab -e
0 * * * * systemctl restart frps

不过,我很好奇 为什么要这么做

thanks. But for some reason I get this in return:

$ systemctl restart frps
Failed to restart frps.service: Unit frps.service not found.

<!-- gh-comment-id:2043376740 --> @bannyhm commented on GitHub (Apr 8, 2024): > ```shell > crontab -e > ``` > > ``` > 0 * * * * systemctl restart frps > ``` > > 不过,我很好奇 为什么要这么做 thanks. But for some reason I get this in return: $ systemctl restart frps Failed to restart frps.service: Unit frps.service not found.
Author
Owner

@bannyhm commented on GitHub (Apr 8, 2024):

It looks like this example is working
https://github.com/fatedier/frp/issues/176#issuecomment-349880778

<!-- gh-comment-id:2043677295 --> @bannyhm commented on GitHub (Apr 8, 2024): It looks like this example is working https://github.com/fatedier/frp/issues/176#issuecomment-349880778
Author
Owner

@github-actions[bot] commented on GitHub (Apr 30, 2024):

Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:2083951978 --> @github-actions[bot] commented on GitHub (Apr 30, 2024): Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
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#3257
No description provided.