[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [orca-list] SD crash problem maybe is solved



Hello Herman, congratulations to your achievement.  Now I'm only curious
why is SD restarted when updatedb starts.  Does anyone have any idea?

BTW, you can test the presence of the directory in the sptartup script.
 You can find my startup script, which I created a few maonts ago for
invoking the SD compiled from source in Ubuntu 7.04.  As far as I
remember, the needed changes were creating the directory and some PID
file settings (which may not be needed for running the Debain version of
SD).

Best regards, Tomas

Hermann napsal(a):
> perhaps I succeeded in solving the SD crash:
> Everyday the process Updatedb is invoked by Anacron; this makes my 
> harddrive start spinning. In the same moment SD crashes, because it gets 
> restarted, don't ask me why.
> I figured this out, because there was a mail by Anacron to the root 
> mailbox saying that /var/run/speech-dispatcher couldn't be created, 
> because it exists.
> Remember: Due to the fact that I've installed SD 0.6.4 from the Debian 
> pool, the startup script couldn't create that folder so that I've to put in 
> two lines crating the dirctory and chown it to speech-dispatcher:audio. 
> This workaround pointed me to the right dirction.
> So I deactivated "Update user folders" under System/preferences/session.
> Since this process starts only once a day, I've to wait until tomorrow, 
> but I hope I've solved the problem.
> Hermann
#! /bin/sh
#
# skeleton	example file to build /etc/init.d/ scripts.
#		This file should be used to construct scripts for /etc/init.d.
#
#		Written by Miquel van Smoorenburg <miquels cistron nl>.
#		Modified for Debian GNU/Linux
#		by Ian Murdock <imurdock gnu ai mit edu>.
#
# Version:	@(#)skeleton  1.8  03-Mar-1998  miquels cistron nl
#
# This file was automatically customized by dh-make on Wed, 16 Apr 2003 14:56:29 +0200

PATH=/sbin:/bin:/usr/sbin:/usr/bin
PIDFILE=/var/run/speech-dispatcher/speech-dispatcher.pid
DAEMON=/usr/local/bin/speech-dispatcher
NAME=speech-dispatcher
DESC="Speech Dispatcher"
USER=speech-dispatcher

test -f $DAEMON || exit 0
if ! test -d /var/run/speech-dispatcher ; then
	mkdir -p /var/run/speech-dispatcher
	chown speech-dispatcher.audio /var/run/speech-dispatcher
fi

set -e

case "$1" in
  start)
	echo -n "Starting $DESC: "
	start-stop-daemon --start --quiet --chuid $USER --pidfile $PIDFILE \
          --exec $DAEMON -- -P $PIDFILE
	echo "$NAME."
	;;
  stop)
	echo -n "Stopping $DESC: "
	start-stop-daemon --oknodo --stop --quiet --user $USER \
          --pidfile $PIDFILE --exec $DAEMON
	echo "$NAME."
	;;
  reload|force-reload)
	#
	#	If the daemon can reload its config files on the fly
	#	for example by sending it SIGHUP, do it here.
	#
	#	If the daemon responds to changes in its config file
	#	directly anyway, make this a do-nothing entry.
	#
	echo "Reloading $DESC configuration files."
	start-stop-daemon --oknodo --stop --signal 1 --quiet --user $USER \
          --pidfile $PIDFILE --exec $DAEMON
        ;;
  restart)
	#
	#	If the "reload" option is implemented, move the "force-reload"
	#	option to the "reload" entry above. If not, "force-reload" is
	#	just the same as "restart".
	#
	echo -n "Restarting $DESC: "
	start-stop-daemon --oknodo --stop --quiet --user $USER \
          --pidfile $PIDFILE --exec $DAEMON
	sleep 3
	start-stop-daemon --start --quiet --chuid $USER --pidfile $PIDFILE \
          --exec $DAEMON -- -P $PIDFILE
	echo "$NAME."
	;;
  *)
	N=/etc/init.d/$NAME
	echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
	exit 1
	;;
esac

exit 0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]