Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dropbox PID
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
kriz
Apprentice
Apprentice


Joined: 22 Jan 2003
Posts: 231

PostPosted: Sat Jun 08, 2013 2:55 pm    Post subject: Dropbox PID Reply with quote

Hallo.

Mit 'ps' bekomme ich eine andere PID von Dropbox als in /var/run/dropbox hinterlegt ist.
Deshalb beendet sich /etc/init.d/dropbox nicht sauber und gibt mir folgendes aus:

Code:

 * Stopping dropbox ...
 * start-stop-daemon: no matching processes found


/etc/init.d/dropbox
Code:

#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-misc/dropbox/files/dropbox.initd,v 1.2 2012/07/25 02:39:58 naota Exp $

PID_DIR=/var/run/dropbox

depend() {
    need localmount net
    after bootmisc
}

start() {
    local tmpnice="${NICE:+"--nicelevel "}${NICE}"
    local tmpionice="${IONICE:+"--ionice "}${IONICE}"
    local started=""

    mkdir -p ${PID_DIR}

    ebegin "Starting dropbox"
    for dbuser in ${DROPBOX_USERS}; do
   local homedir=$(eval echo ~${dbuser})
   if test -d "${homedir}" && \
       start-stop-daemon -S -b \
       -m --pidfile ${PID_DIR}/$dbuser.pid \
       ${tmpnice} ${tmpionice} \
       -u ${dbuser} -v \
       -e HOME=${homedir} \
       -x /opt/bin/dropbox; then
       started="${started} ${dbuser}"
   else
       eend $?
       eerror "Failed to start dropbox for ${dbuser}"
       if [ -n "${started}" ]; then
      eerror "Stopping already started dropbox"
      DROPBOX_USERS=${started} stop
       fi
       return 1
   fi
    done
    if [ -z "${started}" ];then
   eerror "No dropbox started"
   eend 1
    else
   eend 0
    fi
}

stop() {
    local retval=0
    ebegin "Stopping dropbox"
    for dbuser in ${DROPBOX_USERS}; do
   start-stop-daemon --stop \
       --pidfile ${PID_DIR}/${dbuser}.pid || retval=$?
    sleep 1
    done
    eend ${retval}
}

status() {
    for dbuser in ${DROPBOX_USERS}; do
   if [ -e ${PID_DIR}/${dbuser}.pid ] ; then
            echo "dropboxd for USER $dbuser: running."
   else
            echo "dropboxd for USER $dbuser: not running."
   fi
    done
}


Danke im Voraus....
_________________
There is nothing in the desert... and no man needs nothing.
Back to top
View user's profile Send private message
kurisu
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2011
Posts: 104
Location: Munich, Germany

PostPosted: Tue Jun 11, 2013 1:12 am    Post subject: Reply with quote

Sehr eigenartige Sache. Dein Init-Script gleicht dem Meinigen, das ich gegenwärtig mit =net-misc/dropbox-1.6.16 verwende. Ich nehme an, dass Du /etc/conf.d/dropbox individuell angepasst hast?
Back to top
View user's profile Send private message
kriz
Apprentice
Apprentice


Joined: 22 Jan 2003
Posts: 231

PostPosted: Tue Jun 11, 2013 4:17 pm    Post subject: Reply with quote

In /etc/conf.d/dropbox.conf habe ich lediglich den User, unter dem der Daemon laufen soll, angepasst.

Code:

# /etc/conf.d/dropbox.conf: config file for /etc/init.d/dropbox

# Users to run dropbox
DROPBOX_USERS="*myuser"

# integer [-20 .. 19 ] default 0
# change the priority of the server -20 (high) to 19 (low)
# see nice(1) for description
#NICE=0

# See start-stop-daemon(8) for possible settings
#IONICE=2

PID_DIR=/var/run/dropbox

_________________
There is nothing in the desert... and no man needs nothing.
Back to top
View user's profile Send private message
kurisu
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2011
Posts: 104
Location: Munich, Germany

PostPosted: Wed Jun 12, 2013 12:09 am    Post subject: Reply with quote

Mehr gibt es da auch nicht anzupassen. Sofern es kein Tippfehler Deinerseits war, fällt mir dazu höchstens noch ein, dass die fragliche Datei bei mir in der Tat /etc/conf.d/dropbox und nicht /etc/conf.d/dropbox.conf heißt.
Back to top
View user's profile Send private message
kriz
Apprentice
Apprentice


Joined: 22 Jan 2003
Posts: 231

PostPosted: Wed Jun 12, 2013 5:20 pm    Post subject: Reply with quote

Ja, natürlich /etc/conf.d/dropbox
_________________
There is nothing in the desert... and no man needs nothing.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum