7 XAUTHORITY="/home/$USER/.Xauthority.vnc"
8 OPTIONS="-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}"
9 . /lib/lsb/init-functions
13 log_action_begin_msg "Starting vncserver for user '${USER}' on localhost:${DISPLAY}"
14 su ${USER} -c "/usr/bin/vncserver ${OPTIONS}"
18 log_action_begin_msg "Stoping vncserver for user '${USER}' on localhost:${DISPLAY}"
19 su ${USER} -c "/usr/bin/vncserver -kill :${DISPLAY}"