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:
-
do_start()
{
# Return
# 0 if daemon has
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
2008/7/6 Raphael Hertzog [EMAIL PROTECTED]:
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:
do_start
case $? in
0|1) [ $VERBOSE != no ] log_end_msg 0 ;;
On Fri, 04 Jul 2008, Steve Langasek wrote:
Here's a tweak that I think flows a little better:
[...]
p
The fileinit.d/file scripts must ensure that they will
- behave sensibly if invoked with ttstart/tt when the
- service is already running, or with ttstop/tt
Raphael Hertzog [EMAIL PROTECTED] writes:
On Fri, 04 Jul 2008, Steve Langasek wrote:
Here's a tweak that I think flows a little better:
[...]
p
The fileinit.d/file scripts must ensure that they will
-behave sensibly if invoked with ttstart/tt when the
-
On Fri, 04 Jul 2008, Iñaki Baz Castillo wrote:
# lighttpd running:
~# /etc/init.d/lighttpd start ; echo $?
* Starting web server lighttpd
[fail]
1
[...]
Iñaki, if you ever encounter
bad init scripts, please report bugs against the offending packages.
In the above case which is the bad
On Fri, Jul 04, 2008 at 11:59:31AM +0200, Raphael Hertzog wrote:
reassign 426877 debian-policy 3.8.0.1
retitle 426877 Clarify what sensible behaviour is for init scripts
thanks
Ok, this confirms my initial feeling. Changing this in dpkg would require
a wide-scale testing and much effort for
7 matches
Mail list logo