Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #167810

update-rc.d creates unexpected sequence numbers

From CN <cnliou9@fastmail.fm>
Newsgroups linux.debian.user
Subject update-rc.d creates unexpected sequence numbers
Date 2016-05-13 14:00 +0200
Message-ID <ryjV8-2yY-33@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi!

/etc/init.d/my-program is correctly prepared with LSB header comments
like this:

#!/bin/sh
### BEGIN INIT INFO
# Provides:             my-program
# Required-Start:       $postgresql
# Required-Stop:        $postgresql
# Default-Start:        2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: My program.
# Description:  My program.
### END INIT INFO

Both of these two commands

update-rc.d my-program defaults 20 80
update-rc.d my-program defaults start 20 2 3 4 5 . stop 80 0 1 6 .

yield the same incorrect sequence numbers in contrast to the results
demonstrated here:

https://debian-administration.org/article/28/Making_scripts_run_at_boot_time_with_Debian


cd /etc
ls rc5.d rc6.d

rc5.d:
README
S01motd
S01my-program
S01rsyslog
S02cron
S02dbus
S02ntp
S02postgresql
S02rsync
S02ssh
S02xfs
S03avahi-daemon
S03xdm
S04bootlogs
S04saned
S05minissdpd
S05rc.local
S05rmnologin

rc6.d:
K01minissdpd
K01saned
K01urandom
K01xdm
K02avahi-daemon
K02my-program
K02postgresql
K03sendsigs
K04rsyslog
K05hwclock.sh
K05umountnfs.sh
K06rpcbind
K07networking
K08umountfs
K09umountroot
K10reboot
README

I thought the linked files were S20my-program and K80my-program. Why
update-rc.d gives unexpected results? What is the procedure to get the
correct results?

Besides, why none of the sequence numbers with K is 100 minus the number
of the start link "S" according to the recommendations from "man
update-rc.d"?

-- 
http://www.fastmail.com - Access all of your messages and folders
                          wherever you are

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

update-rc.d creates unexpected sequence numbers CN <cnliou9@fastmail.fm> - 2016-05-13 14:00 +0200
  Re: update-rc.d creates unexpected sequence numbers <tomas@tuxteam.de> - 2016-05-13 14:50 +0200
    Re: update-rc.d creates unexpected sequence numbers <tomas@tuxteam.de> - 2016-05-13 15:20 +0200
      Re: update-rc.d creates unexpected sequence numbers CN <cnliou9@fastmail.fm> - 2016-05-13 16:20 +0200
        Re: update-rc.d creates unexpected sequence numbers <tomas@tuxteam.de> - 2016-05-13 19:20 +0200
        Re: update-rc.d creates unexpected sequence numbers Gene Heskett <gheskett@shentel.net> - 2016-05-13 21:40 +0200
          Re: update-rc.d creates unexpected sequence numbers <tomas@tuxteam.de> - 2016-05-13 22:20 +0200
            Re: update-rc.d creates unexpected sequence numbers Gene Heskett <gheskett@shentel.net> - 2016-05-14 01:10 +0200
        Re: update-rc.d creates unexpected sequence numbers Michael Biebl <biebl@debian.org> - 2016-05-13 23:40 +0200
    Re: update-rc.d creates unexpected sequence numbers CN <cnliou9@fastmail.fm> - 2016-05-13 15:20 +0200
  Re: update-rc.d creates unexpected sequence numbers Ansgar Burchardt <"Ansgar Burchardt"@43-1.org> - 2016-05-16 05:20 +0200
    Re: update-rc.d creates unexpected sequence numbers CN <cnliou9@fastmail.fm> - 2016-05-17 14:30 +0200
      Re: update-rc.d creates unexpected sequence numbers Ansgar Burchardt <"Ansgar Burchardt"@43-1.org> - 2016-05-17 21:10 +0200
  Re: update-rc.d creates unexpected sequence numbers Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.com> - 2016-05-22 11:00 +0200

csiph-web