View previous topic :: View next topic |
Author |
Message |
kriz Apprentice
Joined: 22 Jan 2003 Posts: 231
|
Posted: Sat Jun 08, 2013 2:55 pm Post subject: Dropbox PID |
|
|
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 |
|
|
kurisu Apprentice
Joined: 19 Jan 2011 Posts: 159 Location: Munich, Germany
|
Posted: Tue Jun 11, 2013 1:12 am Post subject: |
|
|
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 |
|
|
kriz Apprentice
Joined: 22 Jan 2003 Posts: 231
|
Posted: Tue Jun 11, 2013 4:17 pm Post subject: |
|
|
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 |
|
|
kurisu Apprentice
Joined: 19 Jan 2011 Posts: 159 Location: Munich, Germany
|
Posted: Wed Jun 12, 2013 12:09 am Post subject: |
|
|
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 |
|
|
kriz Apprentice
Joined: 22 Jan 2003 Posts: 231
|
Posted: Wed Jun 12, 2013 5:20 pm Post subject: |
|
|
Ja, natürlich /etc/conf.d/dropbox _________________ There is nothing in the desert... and no man needs nothing. |
|
Back to top |
|
|
|