FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

LinkBack Thread Tools
Old 07-06-2008, 12:23 PM
Raphael Hertzog
Default Bug#426877: Clarify what "sensible behaviour" is for init scripts

On Sun, 06 Jul 2008, Iñaki Baz Castillo wrote:
> > Note that /etc/init.d/skeleton, on which many init scripts in Debian are
> > based, handles this case correctly without using --oknodo.
> Are you sure? These are the "start" and "stop" sections of skeleton
> file in a Debian Etch:

No those are functions... the main code runs without "set -e" and thus doesn't
fail on the error and the return value of the function is checked:

case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;

If do_start returns 0 or 1, the whole script returns "0" (hence success).

Raphaël Hertzog

Le best-seller français mis à jour pour Debian Etch :

To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Thread Tools

All times are GMT. The time now is 10:11 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org