fix: restart sslocal on failure
This commit is contained in:
parent
88c645c1bd
commit
f1a15cb968
1 changed files with 4 additions and 1 deletions
|
@ -70,7 +70,10 @@ in
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
path = [ package ] ++ optional (plugin != null) plugin ++ optional (passwordFile != null) pkgs.jq;
|
path = [ package ] ++ optional (plugin != null) plugin ++ optional (passwordFile != null) pkgs.jq;
|
||||||
serviceConfig.PrivateTmp = true;
|
serviceConfig = {
|
||||||
|
PrivateTmp = true;
|
||||||
|
Restart = "on-failure";
|
||||||
|
};
|
||||||
script = ''
|
script = ''
|
||||||
cp ${configFile} /tmp/shadowsocks.json
|
cp ${configFile} /tmp/shadowsocks.json
|
||||||
${optionalString (passwordFile != null) ''
|
${optionalString (passwordFile != null) ''
|
||||||
|
|
Loading…
Reference in a new issue