> Como fa�o para ovncserver startar quando eu ligar o servidor?
> Atualmente, tenho que digitar o comando vncserver no shell.

Criar este script em /etc/init.d chamado vncd:

#!/bin/sh
# chkconfig: 2345 85 15
# description: VNCServer daemon
# processname: vncd

# Source functions
. /etc/init.d/functions

# See how we were called.
case "$1" in
  start)
        action "Iniciando VNCServer: " vncserver > /dev/null 2>&1
        ;;
  stop)
        action "Parando VNCServer: " vncserver -kill :1
        ;;
  status)
        status vncd
        ;;
  restart|reload)
        $0 stop
        $0 start
        ;;
  *)
        gprintf "Usage: $0 {start|stop|status|restart}\n"
        exit 1
esac

Depois executar:

chkconfig --level 2345 vncd on
service vncd start

Sds,

Leonardo Pinto.

---------------------------------------------------------------------------
Esta lista � patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br

Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br
Regras de utiliza��o da lista: http://linux-br.conectiva.com.br
FAQ: http://www.zago.eti.br/menu.html

Responder a