modules.services: fix systemd

This commit is contained in:
2025-03-11 08:21:27 +08:00
parent f6618ba956
commit c3f51ef803
3 changed files with 3 additions and 3 deletions

View File

@@ -381,7 +381,7 @@ inputs:
after = [ "network.target" ];
serviceConfig =
{
Type = "simple";
Type = "oneshot";
RemainAfterExit = true;
ExecStart = start;
ExecStop = stop;

View File

@@ -30,7 +30,7 @@ inputs:
let ipset = "${inputs.pkgs.ipset}/bin/ipset";
in
{
Type = "simple";
Type = "oneshot";
RemainAfterExit = true;
ExecStart = inputs.pkgs.writeShellScript "xmuvpn-forwarder.start"
(builtins.concatStringsSep "\n" (builtins.map

View File

@@ -240,7 +240,7 @@ inputs:
proxyPort = "10883";
in
{
Type = "simple";
Type = "oneshot";
RemainAfterExit = true;
ExecStart = inputs.pkgs.writeShellScript "v2ray-forwarder.start" (builtins.concatStringsSep "\n"
(