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 = {
|
systemd.services.frpc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "FRP Client";
|
description = "FRP Client";
|
||||||
wantedBy = ["multi-user.target"];
|
after = ["network.target"];
|
||||||
requires = ["network.target"];
|
requires = ["network.target"];
|
||||||
path = [
|
wantedBy = ["multi-user.target"];
|
||||||
pkgs.frp
|
serviceConfig = {
|
||||||
];
|
Type="simple";
|
||||||
script = "frpc -c /etc/frp/frpc.ini";
|
ExecStart="${pkgs.frp}/bin/frpc -c /etc/frp/frpc.ini";
|
||||||
|
Restart="always";
|
||||||
|
RestartSec="5s";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
environment.etc."frp/frpc.ini".text = ''
|
environment.etc."frp/frpc.ini".text = ''
|
||||||
[common]
|
[common]
|
||||||
|
|
Loading…
Reference in a new issue