Enviado em 27/01/2016 - 11:31h
Ola a todos,
Instalei o dropbox no ubuntu server 14.01 LTS e fiz todos os passos seguindo esse how to http://pauloxmachado.blogspot.com.br/2012/06/instalando-e-configurando-dropbox-em.html
Funcionou, consegui receber compartilhamento de outra conta. Paro, inicio e reinicio o dropbox atraves do script dropbox.py. Mas não consigo fazer o dropbox iniciar junto com o servidor.
Segui essas instruções:
https://help.ubuntu.com/community/Dropbox
Quando executo o comando
# service dropbox restart
Stopping dropbox...
No /home/granja/.dropbox-dist/dropboxd found running; none killed.
Starting dropbox...
e nada acontece e todas as vezes que é preciso reiniciar o servidor, por queda de energia ou seja qual for o motivo, tenho que iniciar o dropbox atraves do script dropbox.py
Alguem pode me ajudar?
Instalei o dropbox no ubuntu server 14.01 LTS e fiz todos os passos seguindo esse how to http://pauloxmachado.blogspot.com.br/2012/06/instalando-e-configurando-dropbox-em.html
Funcionou, consegui receber compartilhamento de outra conta. Paro, inicio e reinicio o dropbox atraves do script dropbox.py. Mas não consigo fazer o dropbox iniciar junto com o servidor.
Segui essas instruções:
https://help.ubuntu.com/community/Dropbox
e coloquei o script acima dentro do /etc/init.d e apliquei as permissões de execução.
#!/bin/sh
# dropbox service
# Replace with linux users you want to run Dropbox clients for
### BEGIN INIT INFO
# Provides: dropbox
# Required-Start: $local_fs $remote_fs $network $syslog $named
# Required-Stop: $local_fs $remote_fs $network $syslog $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: false
# Short-Description: dropbox service
### END INIT INFO
DROPBOX_USERS="granja"
DAEMON=.dropbox-dist/dropboxd
start() {
echo "Starting dropbox..."
for dbuser in $DROPBOX_USERS; do
HOMEDIR=`getent passwd $dbuser | cut -d: -f6`
if [ -x $HOMEDIR/$DAEMON ]; then
HOME="$HOMEDIR" start-stop-daemon -b -o -c $dbuser -S -u $dbuser -x $HOMEDIR/$DAEMON
fi
done
}
stop() {
echo "Stopping dropbox..."
for dbuser in $DROPBOX_USERS; do
HOMEDIR=`getent passwd $dbuser | cut -d: -f6`
if [ -x $HOMEDIR/$DAEMON ]; then
start-stop-daemon -o -c $dbuser -K -u $dbuser -x $HOMEDIR/$DAEMON
fi
done
}
status() {
for dbuser in $DROPBOX_USERS; do
dbpid=`pgrep -u $dbuser dropbox`
if [ -z $dbpid ] ; then
echo "dropboxd for USER $dbuser: not running."
else
echo "dropboxd for USER $dbuser: running (pid $dbpid)"
fi
done
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload|force-reload)
stop
start
;;
status)
status
;;
*)
echo "Usage: /etc/init.d/dropbox {start|stop|reload|force-reload|restart|status}"
exit 1
esac
exit 0
Quando executo o comando
# service dropbox restart
Stopping dropbox...
No /home/granja/.dropbox-dist/dropboxd found running; none killed.
Starting dropbox...
e nada acontece e todas as vezes que é preciso reiniciar o servidor, por queda de energia ou seja qual for o motivo, tenho que iniciar o dropbox atraves do script dropbox.py
Alguem pode me ajudar?