Created
May 21, 2014 13:36
-
-
Save StephenKing/36c738e98004fc88bd24 to your computer and use it in GitHub Desktop.
tightvncserver service
This file contains 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
# /etc/init/tightvncserver.conf | |
# tightvncserver for ubuntu user | |
description "Starts TightVNC server for ubuntu user" | |
author "Steffen" | |
start on (filesystem | |
and started avahi-daemon | |
and (started dbus or runlevel [2345]) | |
stop on runlevel [016] | |
post-start script | |
su ubuntu -c "/usr/bin/tightvncserver -geometry 640x480" | |
end script | |
post-stop script | |
killall Xtightvnc | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment