[maemo-commits] [maemo-commits] r15759 - projects/haf/trunk/maemo-launcher/debian
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Thu Jul 10 19:58:08 EEST 2008
- Previous message: [maemo-commits] r15758 - projects/haf/trunk/maemo-launcher/debian
- Next message: [maemo-commits] r15760 - projects/haf/trunk/maemo-launcher/debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: guillem Date: 2008-07-10 19:58:07 +0300 (Thu, 10 Jul 2008) New Revision: 15759 Modified: projects/haf/trunk/maemo-launcher/debian/init.d Log: Move checks at the beginning of the init.d Set -e the first thing. Check for the existence of the binary at the beginning. Modified: projects/haf/trunk/maemo-launcher/debian/init.d =================================================================== --- projects/haf/trunk/maemo-launcher/debian/init.d 2008-07-10 16:58:02 UTC (rev 15758) +++ projects/haf/trunk/maemo-launcher/debian/init.d 2008-07-10 16:58:07 UTC (rev 15759) @@ -3,6 +3,8 @@ # $Id$ # +set -e + NAME=maemo-launcher DESC="Maemo Launcher" DAEMON=/usr/bin/$NAME @@ -11,6 +13,8 @@ DAEMON_BASE_OPTS="--daemon --booster gtk" PIDFILE=/tmp/$NAME.pid +test -x $DAEMON || exit 0 + # Those files set needed environment variables for the Maemo applications # FIXME: but this should not be needed either, and should be inherited from # the session instead. @@ -46,10 +50,6 @@ DAEMON_OPTS="$DAEMON_BASE_OPTS --quiet" fi -test -x $DAEMON || exit 0 - -set -e - case "$1" in start) echo -n "Starting $DESC: $NAME"
- Previous message: [maemo-commits] r15758 - projects/haf/trunk/maemo-launcher/debian
- Next message: [maemo-commits] r15760 - projects/haf/trunk/maemo-launcher/debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]