Always restart
This commit is contained in:
parent
e41b1b0211
commit
2a86e83223
1 changed files with 1 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ pkgs: user: port:
|
|||
Type = "simple";
|
||||
User = "${user}";
|
||||
WorkingDirectory = "/home/${user}";
|
||||
Restart = "always";
|
||||
|
||||
ExecStartPre = "${pkgs.bash}/bin/bash -c '${pkgs.tigervnc}/bin/vncserver -kill :1 > /dev/null 2>&1 || :'";
|
||||
ExecStart = "${pkgs.xorg.xinit}/bin/xinit /home/${user}/.vnc/xstartup -- ${pkgs.tigervnc}/bin/Xvnc :1 -rfbauth /home/${user}/.vnc/passwd -rfbport ${port}";
|
||||
|
|
|
|||
Loading…
Reference in a new issue