make ssh port 2050 unit actually start automatically
This commit is contained in:
parent
6c46e5d5a7
commit
c6df96cfea
1 changed files with 1 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
systemd.services.ssh-port2050-natpmp = {
|
systemd.services.ssh-port2050-natpmp = {
|
||||||
bindsTo = ["sshd.socket"];
|
bindsTo = ["sshd.socket"];
|
||||||
after = ["sshd.socket"];
|
after = ["sshd.socket"];
|
||||||
|
wantedBy = ["multi-user.target"];
|
||||||
serviceConfig.Restart = "on-failure";
|
serviceConfig.Restart = "on-failure";
|
||||||
serviceConfig.ExecStart = pkgs.writeScript "ssh-port2050-natpmp" ''
|
serviceConfig.ExecStart = pkgs.writeScript "ssh-port2050-natpmp" ''
|
||||||
#!${pkgs.bash}/bin/bash
|
#!${pkgs.bash}/bin/bash
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue