On 8/16/2020 7:15 AM, Scott Andrews via blfs-support wrote:
On Fri, 14 Aug 2020 12:53:39 -0400 Scott Andrews
<scott.andr...@columbus.rr.com> wrote: I have patched and extended and
changed the name of lsbtools: It make lsbtools a functional utility
for keeping systemv init scripts in the proper order. I merged the
remove_initd and install_initd into a single pythons script and added
s "service and display function. I changed the name to chkconfig
chkconfig returns: S 0 1 2 3 4 5 6 checkfs S30 --- --- --- --- --- ---
--- cleanfs S45 --- --- --- --- --- --- --- console S70 --- --- ---
--- --- --- --- halt --- S99 --- --- --- --- --- --- localnet S08 S90
--- --- --- --- --- S90 modules S05 --- --- --- --- --- --- ---
mountfs S40 S70 --- --- --- --- --- S70 mountvirtfs S00 --- --- ---
--- --- --- --- network --- K80 K80 K80 S20 S20 S20 K80 rc --- --- ---
--- --- --- --- --- reboot --- --- --- --- --- --- --- S99 sendsignals
--- S60 --- --- --- --- --- S60 setclock --- --- --- --- --- --- ---
--- swap S20 S65 --- --- --- --- --- S65 sysctl S90 --- --- --- ---
--- --- --- sysklogd --- K90 K90 K90 S10 S10 S10 K90 template --- ---
--- --- --- --- --- --- udev S10 --- --- --- --- --- --- ---
udev_retry S50 --- --- --- --- --- --- --- chkconfig --add <script>
adds a script chkconfig --del <script> removes a script chkconfig
--stat <script> returns the status , running stopped etc chkconfig
--all returns status of all scripts chkconfig --service [start|stop]
script starts or kills a script
A quick mockup seems to work as expected on an older bootscripts package...
dj@lfsdt2 [ ~ ]$ /usr/sbin/install_initd -d rngd
Removing /etc/rc.d/rcS.d/S00mountvirtfs
Removing /etc/rc.d/rcS.d/S09modules
Removing /etc/rc.d/rcS.d/S18setclock
Removing /etc/rc.d/rcS.d/S27localnet
Removing /etc/rc.d/rcS.d/S36udev
Removing /etc/rc.d/rcS.d/S45swap
Removing /etc/rc.d/rcS.d/S54checkfs
Removing /etc/rc.d/rcS.d/S63mountfs
Removing /etc/rc.d/rcS.d/S72udev_retry
Removing /etc/rc.d/rcS.d/S81console
Removing /etc/rc.d/rcS.d/S90sysctl
Adding /etc/rc.d/rcS.d/S00mountvirtfs
Adding /etc/rc.d/rcS.d/S08modules
Adding /etc/rc.d/rcS.d/S16setclock
Adding /etc/rc.d/rcS.d/S24localnet
Adding /etc/rc.d/rcS.d/S32udev
Adding /etc/rc.d/rcS.d/S40swap
Adding /etc/rc.d/rcS.d/S48checkfs
Adding /etc/rc.d/rcS.d/S56mountfs
Adding /etc/rc.d/rcS.d/S64rngd
Adding /etc/rc.d/rcS.d/S72udev_retry
Adding /etc/rc.d/rcS.d/S80console
Adding /etc/rc.d/rcS.d/S88sysctl
Removing /etc/rc.d/rc0.d/S00halt
Adding /etc/rc.d/rc0.d/S00halt
Removing /etc/rc.d/rc0.d/K00gdm
Removing /etc/rc.d/rc0.d/K05avahi
Removing /etc/rc.d/rc0.d/K10fcron
Removing /etc/rc.d/rc0.d/K15ntpd
Removing /etc/rc.d/rc0.d/K20netfs
Removing /etc/rc.d/rc0.d/K25httpd
Removing /etc/rc.d/rc0.d/K30sshd
Removing /etc/rc.d/rc0.d/K35php-fpm
Removing /etc/rc.d/rc0.d/K40networkmanager
Removing /etc/rc.d/rc0.d/K45network
Removing /etc/rc.d/rc0.d/K50firewalld
Removing /etc/rc.d/rc0.d/K55dbus
Removing /etc/rc.d/rc0.d/K60random
Removing /etc/rc.d/rc0.d/K65cups
Removing /etc/rc.d/rc0.d/K70bluetooth
Removing /etc/rc.d/rc0.d/K75sysklogd
Removing /etc/rc.d/rc0.d/K80sendsignals
Removing /etc/rc.d/rc0.d/K85swap
Removing /etc/rc.d/rc0.d/K90mountfs
Removing /etc/rc.d/rc0.d/K95localnet
Adding /etc/rc.d/rc0.d/K00gdm
Adding /etc/rc.d/rc0.d/K04avahi
Adding /etc/rc.d/rc0.d/K08fcron
Adding /etc/rc.d/rc0.d/K12ntpd
Adding /etc/rc.d/rc0.d/K16netfs
Adding /etc/rc.d/rc0.d/K20httpd
Adding /etc/rc.d/rc0.d/K24sshd
Adding /etc/rc.d/rc0.d/K28php-fpm
Adding /etc/rc.d/rc0.d/K32networkmanager
Adding /etc/rc.d/rc0.d/K36network
Adding /etc/rc.d/rc0.d/K40firewalld
Adding /etc/rc.d/rc0.d/K44dbus
Adding /etc/rc.d/rc0.d/K48random
Adding /etc/rc.d/rc0.d/K52cups
Adding /etc/rc.d/rc0.d/K56bluetooth
Adding /etc/rc.d/rc0.d/K60sysklogd
Adding /etc/rc.d/rc0.d/K64sendsignals
Adding /etc/rc.d/rc0.d/K68swap
Adding /etc/rc.d/rc0.d/K72mountfs
Adding /etc/rc.d/rc0.d/K76localnet
Adding /etc/rc.d/rc0.d/K80rngd
Removing /etc/rc.d/rc1.d/K00gdm
Removing /etc/rc.d/rc1.d/K06fcron
Removing /etc/rc.d/rc1.d/K12ntpd
Removing /etc/rc.d/rc1.d/K18netfs
Removing /etc/rc.d/rc1.d/K24avahi
Removing /etc/rc.d/rc1.d/K30httpd
Removing /etc/rc.d/rc1.d/K36sshd
Removing /etc/rc.d/rc1.d/K42php-fpm
Removing /etc/rc.d/rc1.d/K48networkmanager
Removing /etc/rc.d/rc1.d/K54network
Removing /etc/rc.d/rc1.d/K60firewalld
Removing /etc/rc.d/rc1.d/K66dbus
Removing /etc/rc.d/rc1.d/K72random
Removing /etc/rc.d/rc1.d/K78cups
Removing /etc/rc.d/rc1.d/K84bluetooth
Removing /etc/rc.d/rc1.d/K90sysklogd
Adding /etc/rc.d/rc1.d/K00gdm
Adding /etc/rc.d/rc1.d/K06fcron
Adding /etc/rc.d/rc1.d/K12ntpd
Adding /etc/rc.d/rc1.d/K18netfs
Adding /etc/rc.d/rc1.d/K24avahi
Adding /etc/rc.d/rc1.d/K30httpd
Adding /etc/rc.d/rc1.d/K36sshd
Adding /etc/rc.d/rc1.d/K42php-fpm
Adding /etc/rc.d/rc1.d/K48networkmanager
Adding /etc/rc.d/rc1.d/K54network
Adding /etc/rc.d/rc1.d/K60firewalld
Adding /etc/rc.d/rc1.d/K66dbus
Adding /etc/rc.d/rc1.d/K72random
Adding /etc/rc.d/rc1.d/K78cups
Adding /etc/rc.d/rc1.d/K84bluetooth
Adding /etc/rc.d/rc1.d/K90sysklogd
Removing /etc/rc.d/rc2.d/S00sysklogd
Removing /etc/rc.d/rc2.d/S25random
Removing /etc/rc.d/rc2.d/S50dbus
Removing /etc/rc.d/rc2.d/S75cups
Adding /etc/rc.d/rc2.d/S00sysklogd
Adding /etc/rc.d/rc2.d/S25random
Adding /etc/rc.d/rc2.d/S50dbus
Adding /etc/rc.d/rc2.d/S75cups
Removing /etc/rc.d/rc2.d/K00gdm
Removing /etc/rc.d/rc2.d/K08fcron
Removing /etc/rc.d/rc2.d/K16ntpd
Removing /etc/rc.d/rc2.d/K24netfs
Removing /etc/rc.d/rc2.d/K32avahi
Removing /etc/rc.d/rc2.d/K40httpd
Removing /etc/rc.d/rc2.d/K48sshd
Removing /etc/rc.d/rc2.d/K56php-fpm
Removing /etc/rc.d/rc2.d/K64networkmanager
Removing /etc/rc.d/rc2.d/K72network
Removing /etc/rc.d/rc2.d/K80firewalld
Removing /etc/rc.d/rc2.d/K88bluetooth
Adding /etc/rc.d/rc2.d/K00gdm
Adding /etc/rc.d/rc2.d/K08fcron
Adding /etc/rc.d/rc2.d/K16ntpd
Adding /etc/rc.d/rc2.d/K24netfs
Adding /etc/rc.d/rc2.d/K32avahi
Adding /etc/rc.d/rc2.d/K40httpd
Adding /etc/rc.d/rc2.d/K48sshd
Adding /etc/rc.d/rc2.d/K56php-fpm
Adding /etc/rc.d/rc2.d/K64networkmanager
Adding /etc/rc.d/rc2.d/K72network
Adding /etc/rc.d/rc2.d/K80firewalld
Adding /etc/rc.d/rc2.d/K88bluetooth
Removing /etc/rc.d/rc3.d/S00sysklogd
Removing /etc/rc.d/rc3.d/S06random
Removing /etc/rc.d/rc3.d/S12dbus
Removing /etc/rc.d/rc3.d/S18cups
Removing /etc/rc.d/rc3.d/S24firewalld
Removing /etc/rc.d/rc3.d/S30network
Removing /etc/rc.d/rc3.d/S36networkmanager
Removing /etc/rc.d/rc3.d/S42sshd
Removing /etc/rc.d/rc3.d/S48avahi
Removing /etc/rc.d/rc3.d/S54netfs
Removing /etc/rc.d/rc3.d/S60fcron
Removing /etc/rc.d/rc3.d/S66ntpd
Removing /etc/rc.d/rc3.d/S72bluetooth
Removing /etc/rc.d/rc3.d/S78php-fpm
Removing /etc/rc.d/rc3.d/S84httpd
Adding /etc/rc.d/rc3.d/S00sysklogd
Adding /etc/rc.d/rc3.d/S06random
Adding /etc/rc.d/rc3.d/S12dbus
Adding /etc/rc.d/rc3.d/S18cups
Adding /etc/rc.d/rc3.d/S24firewalld
Adding /etc/rc.d/rc3.d/S30network
Adding /etc/rc.d/rc3.d/S36networkmanager
Adding /etc/rc.d/rc3.d/S42sshd
Adding /etc/rc.d/rc3.d/S48avahi
Adding /etc/rc.d/rc3.d/S54netfs
Adding /etc/rc.d/rc3.d/S60fcron
Adding /etc/rc.d/rc3.d/S66ntpd
Adding /etc/rc.d/rc3.d/S72bluetooth
Adding /etc/rc.d/rc3.d/S78php-fpm
Adding /etc/rc.d/rc3.d/S84httpd
Removing /etc/rc.d/rc3.d/K00gdm
Adding /etc/rc.d/rc3.d/K00gdm
Removing /etc/rc.d/rc4.d/S00sysklogd
Removing /etc/rc.d/rc4.d/S06random
Removing /etc/rc.d/rc4.d/S12dbus
Removing /etc/rc.d/rc4.d/S18cups
Removing /etc/rc.d/rc4.d/S24firewalld
Removing /etc/rc.d/rc4.d/S30network
Removing /etc/rc.d/rc4.d/S36networkmanager
Removing /etc/rc.d/rc4.d/S42sshd
Removing /etc/rc.d/rc4.d/S48avahi
Removing /etc/rc.d/rc4.d/S54netfs
Removing /etc/rc.d/rc4.d/S60fcron
Removing /etc/rc.d/rc4.d/S66ntpd
Removing /etc/rc.d/rc4.d/S72bluetooth
Removing /etc/rc.d/rc4.d/S78php-fpm
Removing /etc/rc.d/rc4.d/S84httpd
Adding /etc/rc.d/rc4.d/S00sysklogd
Adding /etc/rc.d/rc4.d/S06random
Adding /etc/rc.d/rc4.d/S12dbus
Adding /etc/rc.d/rc4.d/S18cups
Adding /etc/rc.d/rc4.d/S24firewalld
Adding /etc/rc.d/rc4.d/S30network
Adding /etc/rc.d/rc4.d/S36networkmanager
Adding /etc/rc.d/rc4.d/S42sshd
Adding /etc/rc.d/rc4.d/S48avahi
Adding /etc/rc.d/rc4.d/S54netfs
Adding /etc/rc.d/rc4.d/S60fcron
Adding /etc/rc.d/rc4.d/S66ntpd
Adding /etc/rc.d/rc4.d/S72bluetooth
Adding /etc/rc.d/rc4.d/S78php-fpm
Adding /etc/rc.d/rc4.d/S84httpd
Removing /etc/rc.d/rc4.d/K00gdm
Adding /etc/rc.d/rc4.d/K00gdm
Removing /etc/rc.d/rc5.d/S00sysklogd
Removing /etc/rc.d/rc5.d/S06random
Removing /etc/rc.d/rc5.d/S12dbus
Removing /etc/rc.d/rc5.d/S18cups
Removing /etc/rc.d/rc5.d/S24firewalld
Removing /etc/rc.d/rc5.d/S30network
Removing /etc/rc.d/rc5.d/S36networkmanager
Removing /etc/rc.d/rc5.d/S42sshd
Removing /etc/rc.d/rc5.d/S48avahi
Removing /etc/rc.d/rc5.d/S54netfs
Removing /etc/rc.d/rc5.d/S60fcron
Removing /etc/rc.d/rc5.d/S66ntpd
Removing /etc/rc.d/rc5.d/S72bluetooth
Removing /etc/rc.d/rc5.d/S78php-fpm
Removing /etc/rc.d/rc5.d/S84httpd
Removing /etc/rc.d/rc5.d/S90gdm
Adding /etc/rc.d/rc5.d/S00sysklogd
Adding /etc/rc.d/rc5.d/S06random
Adding /etc/rc.d/rc5.d/S12dbus
Adding /etc/rc.d/rc5.d/S18cups
Adding /etc/rc.d/rc5.d/S24firewalld
Adding /etc/rc.d/rc5.d/S30network
Adding /etc/rc.d/rc5.d/S36networkmanager
Adding /etc/rc.d/rc5.d/S42sshd
Adding /etc/rc.d/rc5.d/S48avahi
Adding /etc/rc.d/rc5.d/S54netfs
Adding /etc/rc.d/rc5.d/S60fcron
Adding /etc/rc.d/rc5.d/S66ntpd
Adding /etc/rc.d/rc5.d/S72bluetooth
Adding /etc/rc.d/rc5.d/S78php-fpm
Adding /etc/rc.d/rc5.d/S84httpd
Adding /etc/rc.d/rc5.d/S90gdm
Removing /etc/rc.d/rc6.d/S00reboot
Adding /etc/rc.d/rc6.d/S00reboot
Removing /etc/rc.d/rc6.d/K00gdm
Removing /etc/rc.d/rc6.d/K05avahi
Removing /etc/rc.d/rc6.d/K10fcron
Removing /etc/rc.d/rc6.d/K15ntpd
Removing /etc/rc.d/rc6.d/K20netfs
Removing /etc/rc.d/rc6.d/K25httpd
Removing /etc/rc.d/rc6.d/K30sshd
Removing /etc/rc.d/rc6.d/K35php-fpm
Removing /etc/rc.d/rc6.d/K40networkmanager
Removing /etc/rc.d/rc6.d/K45network
Removing /etc/rc.d/rc6.d/K50firewalld
Removing /etc/rc.d/rc6.d/K55dbus
Removing /etc/rc.d/rc6.d/K60random
Removing /etc/rc.d/rc6.d/K65cups
Removing /etc/rc.d/rc6.d/K70bluetooth
Removing /etc/rc.d/rc6.d/K75sysklogd
Removing /etc/rc.d/rc6.d/K80sendsignals
Removing /etc/rc.d/rc6.d/K85swap
Removing /etc/rc.d/rc6.d/K90mountfs
Removing /etc/rc.d/rc6.d/K95localnet
Adding /etc/rc.d/rc6.d/K00gdm
Adding /etc/rc.d/rc6.d/K04avahi
Adding /etc/rc.d/rc6.d/K08fcron
Adding /etc/rc.d/rc6.d/K12ntpd
Adding /etc/rc.d/rc6.d/K16netfs
Adding /etc/rc.d/rc6.d/K20httpd
Adding /etc/rc.d/rc6.d/K24sshd
Adding /etc/rc.d/rc6.d/K28php-fpm
Adding /etc/rc.d/rc6.d/K32networkmanager
Adding /etc/rc.d/rc6.d/K36network
Adding /etc/rc.d/rc6.d/K40firewalld
Adding /etc/rc.d/rc6.d/K44dbus
Adding /etc/rc.d/rc6.d/K48random
Adding /etc/rc.d/rc6.d/K52cups
Adding /etc/rc.d/rc6.d/K56bluetooth
Adding /etc/rc.d/rc6.d/K60sysklogd
Adding /etc/rc.d/rc6.d/K64sendsignals
Adding /etc/rc.d/rc6.d/K68swap
Adding /etc/rc.d/rc6.d/K72mountfs
Adding /etc/rc.d/rc6.d/K76localnet
Adding /etc/rc.d/rc6.d/K80rngd
I'll need to get a look at it with the latest scripts. A recent change
might have shown a corner case. If it's not proprietary, can you send me
a tarball of your /etc/rc.d/init.d?
--DJ
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page