I'm working on some lsb init scripts. Here's the init info from one of them:
### BEGIN INIT INFO
# Provides: myscript
# Required-Start: networking myotherscript
# Required-Stop: networking myotherscript
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts my daemon
### END INIT INFO
And the init info from myotherscript
### BEGIN INIT INFO
# Provides: myotherscript
# Required-Start: networking
# Required-Stop: networking
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts my other daemon
### END INIT INFO
If I understand correctly, running service myscript start
should not work unless myotherscript is running. However, executing service myscript start
does indeed work.
Why don't I at least get an error about the unmet dependency?
chkconfig
gives the script's symlink when you enable it? As in does that just tellchkconfig
to make suremyotherscript
has a lower number thanmyscript
?