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@home client software... failed! This is the configuration file modified by me :- cat /etc/init.d/tiles-gen-client #!/bin/sh # # tilesGen@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@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@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@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@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 _______________________________________________ Tilesathome mailing list [hidden email] http://lists.openstreetmap.org/listinfo/tilesathome |
Am 06.11.2011 05:12, schrieb shirish शिरीष:
> Hi all, > I get a failed message everytime I try /etc/init.d/tiles-gen-client start [...] > PIDFILE=/var/run/tilesGen.pid > # tilesAtHome directory > TILES_HOME=/home/shirish/t@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 > The only change done by me are the change in values of TILES_HOME and TILES_USER > > Any ideas anybody ? Put the values of TILES_HOME and TILES_USER in double or single quotes. -- Dirk-Lüder "Deelkar" Kreie Bremen - 53.0901°N 8.7868°E _______________________________________________ Tilesathome mailing list [hidden email] http://lists.openstreetmap.org/listinfo/tilesathome |
Free forum by Nabble | Edit this page |