[Pkg-alsa-devel] Bug#386624: Inaccurate / incorrect dependency info
in init.d script
Petter Reinholdtsen
pere at hungry.ocm
Fri Sep 8 22:46:00 UTC 2006
Package: alsa-utils
Version: 1.0.11-6
Currently, /etc/init.d/alsa-utils include this LSB-formatted
dependency information:
### BEGIN INIT INFO
# Provides: alsa-utils
# Required-Start: mountall
# Required-Stop: mountall
# Should-Start:
# Should-Stop:
# Default-Start: S
# Default-Stop: 0 6
### END INIT INFO
It can be improved for the 'sbtart' case, and is wrong for the 'stop'
case. The mountall script is the script implementing the $local_fs
facility, so I recommend using that instead of mountall in
required-start. And mountall do not exist in runlevel 0 and 6, where
umountfs do the equvalent job. It too implement the $local_fs
facility. Because of this, I recommend changing the dependency header
to this:
### BEGIN INIT INFO
# Provides: alsa-utils
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: S
# Default-Stop: 0 6
### END INIT INFO
This way it will document that it should start after the non-networked
file systems are available, and be taken down just before the same
non-networked file systems are umounted.
Friendly,
--
Petter Reinholdtsen
More information about the Pkg-alsa-devel
mailing list