Your message dated Tue, 19 Jan 2016 00:28:01 +0100
with message-id <[email protected]>
and subject line Re: sysv-rc: update-rc.d should support empty Default-Start
has caused the Debian Bug report #588868,
regarding update-rc.d: should support empty Default-Start
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
588868: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588868
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sysv-rc
Version: 2.88dsf-11
Severity: important

I have a backup script on my desktop PC, which should run only on system 
shutdown (runlevel 0).

So I have written /etc/init.d/backup-thuehome.sh , with an LSB header including
# Default-Start:     
# Default-Stop:      0

But when I try to use it, it fails because the init system won't
accept an empty Default-Start. For example running update-rc.d with an
empty Default-State, or removing Default-Start completely, gives me:

t@h ~> sudo update-rc.d backup-thuehome.sh enable
update-rc.d: using dependency based boot sequencing
update-rc.d: error: backup-thuehome.sh Default-Start contains no runlevels, 
aborting.

Even worse, when manually adding a symlink to /etc/rc0.d , then the
script silently refuses to run, without an error being logged to
syslog or the console! (this part is why I added the important
severity. Error handling feedback is very important!)

My init scipt works fine if a add for example
# Default-Start:    3

Regards Thue

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=da_DK.UTF-8, LC_CTYPE=da_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages sysv-rc depends on:
ii  debconf [debconf-2.0]         1.5.33     Debian configuration management sy
ii  insserv                       1.14.0-2   Tool to organize boot sequence usi
ii  sysvinit-utils                2.88dsf-11 System-V-like utilities

Versions of packages sysv-rc recommends:
ii  lsb-base                      3.2-23.1   Linux Standard Base 3.2 init scrip

Versions of packages sysv-rc suggests:
pn  bum                           <none>     (no description available)
pn  sysv-rc-conf                  <none>     (no description available)

-- debconf information:
  sysv-rc/unable-to-convert:
* sysv-rc/convert-legacy: true



--- End Message ---
--- Begin Message ---
On Mon, 12 Jul 2010 23:27:09 +0200 Thue Janus Kristensen
<[email protected]> wrote:
> Package: sysv-rc
> Version: 2.88dsf-11
> Severity: important
> 
> I have a backup script on my desktop PC, which should run only on system 
> shutdown (runlevel 0).
> 
> So I have written /etc/init.d/backup-thuehome.sh , with an LSB header 
> including
> # Default-Start:     
> # Default-Stop:      0
> 
> But when I try to use it, it fails because the init system won't
> accept an empty Default-Start. For example running update-rc.d with an
> empty Default-State, or removing Default-Start completely, gives me:

This works nowadays, so I'm closing this bug report.

# head /etc/init.d/test  -n 11
#!/bin/sh
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and
sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
    set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
### BEGIN INIT INFO
# Provides:          skeleton
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:
# Default-Stop:      0


# update-rc.d test defaults
# echo $?
0

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
_______________________________________________
Pkg-systemd-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Reply via email to