Last active
July 7, 2025 11:20
-
-
Save henior2/588121d3c3570f4ba092ac2b7c904b1c to your computer and use it in GitHub Desktop.
frp systemd service units
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=frp client | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| DynamicUser=yes | |
| Restart=on-failure | |
| RestartSec=5s | |
| ExecStart=/usr/bin/frpc -c /etc/frp/frpc.toml | |
| ExecReload=/usr/bin/frpc reload -c /etc/frp/frpc.toml | |
| LimitNOFILE=1048576 | |
| [Install] | |
| WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=frp server | |
| After=network.target syslog.target | |
| Wants=network.target | |
| [Service] | |
| Type=simple | |
| DynamicUser=yes | |
| Restart=on-failure | |
| RestartSec=5s | |
| ExecStart=/usr/bin/frps -c /etc/frp/frps.toml | |
| LimitNOFILE=1048576 | |
| [Install] | |
| WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.