update frpc service

This commit is contained in:
Adithya 2023-05-29 23:20:18 +05:30
parent 3c83f8b5d4
commit 3ac3177236
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -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]