Created
December 24, 2020 07:42
-
-
Save jiahut/a15df43f6354cb2426be3b25e9adb341 to your computer and use it in GitHub Desktop.
turbovnc systemd service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=TurboVNC vncserver | |
After=network.target syslog.target | |
[Service] | |
User=ubuntu | |
Type=forking | |
ExecStartPre=/bin/sh -c '/opt/TurboVNC/bin/vncserver -kill :1 &>/dev/null || :' | |
ExecStart=/opt/TurboVNC/bin/vncserver -nohttpd -nthreads 8 -nevershared -disconnect -deferupdate 1 -idletimeout 0 -interframe -depth 24 -name zhijia-cloud-vnc :1 | |
ExecStop=/bin/sh -c '/opt/TurboVNC/bin/vncserver -kill :1 &>/dev/null || :' | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment