[Tilesathome] Get failure when trying /etc/init.d/tiles-gen-client start

shirish शिरीष shirishag75 at gmail.com
Sun Nov 6 04:12:17 GMT 2011


Hi all,
      I get a failed message everytime I try /etc/init.d/tiles-gen-client start

~$ /etc/init.d/tiles-gen-client start
Starting tilesGen at home client software... failed!


This is the configuration file modified by me :-

 cat /etc/init.d/tiles-gen-client
#!/bin/sh
#
# tilesGen at home client software init script.
# feel free to change the script.
#
### BEGIN INIT INFO
# Provides:          tiles-gen-client
# Required-Start:    $remote_fs $network
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Starts tilesGen at home client software at boot time
### END INIT INFO

# import lsb functions for init.d scripts
. /lib/lsb/init-functions

PIDFILE=/var/run/tilesGen.pid
# tilesAtHome directory
TILES_HOME=/home/shirish/t at home/
PERL="/usr/bin/perl"
# niceness level for client software
NICELEVEL=20
# username for tiles process
TILES_USER=shirish
# timeout to wait for the client to finish on shutdown
TIMEOUT=1200
# name of start script
START=start.sh

case "$1" in
    start)
        cd "$TILES_HOME"
        log_begin_msg "Starting tilesGen at home client software..."
        if start-stop-daemon --start --quiet --pidfile "$PIDFILE"
--nicelevel "$NICELEVEL" --background --make-pidfile \
                --chdir "$TILES_HOME" --chuid "$TILES_USER" --exec
"/bin/sh" -- $START > /dev/null 2>&1; then
            log_end_msg 0
        else
            log_end_msg 1
        fi
        ;;
    stop)
        log_begin_msg "Stopping tilesGen at home client software..."
        cd "$TILES_HOME"
        touch stopfile.txt
        # we have to wait for $PERL because perl was exec'ed by /bin/sh.
        if start-stop-daemon --stop --quiet --chuid "$TILES_USER"
--signal 0 -R $TIMEOUT --pidfile "$PIDFILE" --exec "$PERL"; then
            log_end_msg 0
        else
            log_end_msg 1
        fi
        ;;
    restart)
        $0 stop
        exec $0 start
        ;;
    *)
        log_action_msg "Usage: /etc/init.d/tiles-gen-client
{start|stop|restart}"
        exit 1
        ;;

The only change done by me are the change in values of TILES_HOME and TILES_USER

Any ideas anybody ?
-- 
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17



More information about the Tilesathome mailing list