update frpc service
This commit is contained in:
parent
3c83f8b5d4
commit
3ac3177236
1 changed files with 8 additions and 5 deletions
|
@ -4,12 +4,15 @@ in {
|
|||
systemd.services.frpc = {
|
||||
enable = true;
|
||||
description = "FRP Client";
|
||||
wantedBy = ["multi-user.target"];
|
||||
after = ["network.target"];
|
||||
requires = ["network.target"];
|
||||
path = [
|
||||
pkgs.frp
|
||||
];
|
||||
script = "frpc -c /etc/frp/frpc.ini";
|
||||
wantedBy = ["multi-user.target"];
|
||||
serviceConfig = {
|
||||
Type="simple";
|
||||
ExecStart="${pkgs.frp}/bin/frpc -c /etc/frp/frpc.ini";
|
||||
Restart="always";
|
||||
RestartSec="5s";
|
||||
};
|
||||
};
|
||||
environment.etc."frp/frpc.ini".text = ''
|
||||
[common]
|
||||
|
|
Loading…
Reference in a new issue