initscripts: fix missing chkconfig header in initscript
PATCH 1/1 initscripts: fix missing chkconfig header in initscript
chkconfig needs a specific header to work properly, which indicates the initial start and stop order. Or it will mess up the priority of init scripts while enable or disable service. So it will be necessary to add this header into init script which supports chkconfig.
Signed-off-by Rui Wang <[email protected]>
--- meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon | 1 + meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver | 1 + meta/recipes-core/busybox/files/hwclock.sh | 1 + meta/recipes-core/busybox/files/syslog | 1 + meta/recipes-core/init-ifupdown/init-ifupdown-1.0/init | 1 + meta/recipes-core/initscripts/initscripts-1.0/halt | 1 + meta/recipes-core/initscripts/initscripts-1.0/reboot | 1 + meta/recipes-core/initscripts/initscripts-1.0/rmnologin.sh | 1 + meta/recipes-core/initscripts/initscripts-1.0/save-rtc.sh | 1 + meta/recipes-core/initscripts/initscripts-1.0/sendsigs | 1 + meta/recipes-core/initscripts/initscripts-1.0/umountfs | 1 + meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh | 1 + meta/recipes-core/initscripts/initscripts-1.0/urandom | 1 + meta/recipes-core/sysvinit/sysvinit/bootlogd.init | 1 + meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.init | 1 + meta/recipes-extended/cronie/cronie/crond.init | 1 + meta/recipes-extended/rpcbind/rpcbind/init.d | 1 + 17 files changed, 17 insertions(+)
meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh +# chkconfig: 2345 19 71 ### BEGIN INIT INFO # Provides: nfs-common # Required-Start: $portmap hwclock
meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh +# chkconfig: 2345 20 80 ### BEGIN INIT INFO # Provides: nfs-kernel-server # Required-Start: $remote_fs nfs-common $portmap hwclock
meta/recipes-core/busybox/files/hwclock.sh +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh +# chkconfig: S 20 80 ### BEGIN INIT INFO # Provides: hwclock # Required-Start:
meta/recipes-core/busybox/files/syslog +1 -0
@@ -1,4 +1,5 @@ #! /bin/sh +# chkconfig: 2345 20 80 ### BEGIN INIT INFO # Provides: sysklogd # Required-Start: $remote_fs $time
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/init +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh -e +# chkconfig: S 10 90 ### BEGIN INIT INFO # Provides: networking # Required-Start: mountvirtfs $local_fs
meta/recipes-core/initscripts/initscripts-1.0/halt +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh +# chkconfig: - 90 10 ### BEGIN INIT INFO # Provides: halt # Required-Start:
meta/recipes-core/initscripts/initscripts-1.0/reboot +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh +# chkconfig: - 90 10 ### BEGIN INIT INFO # Provides: reboot # Required-Start:
meta/recipes-core/initscripts/initscripts-1.0/rmnologin.sh +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh +# chkconfig: 2345 99 01 ### BEGIN INIT INFO # Provides: rmnologin # Required-Start: $remote_fs $all
meta/recipes-core/initscripts/initscripts-1.0/save-rtc.sh +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh +# chkconfig: S 25 75 ### BEGIN INIT INFO # Provides: save-rtc # Required-Start:
meta/recipes-core/initscripts/initscripts-1.0/sendsigs +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh +# chkconfig: - 20 80 ### BEGIN INIT INFO # Provides: sendsigs # Required-Start:
meta/recipes-core/initscripts/initscripts-1.0/umountfs +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh +# chkconfig: - 40 60 ### BEGIN INIT INFO # Provides: umountfs # Required-Start:
meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh +# chkconfig: - 31 69 ### BEGIN INIT INFO # Provides: umountnfs # Required-Start:
meta/recipes-core/initscripts/initscripts-1.0/urandom +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh +# chkconfig: S 30 70 ### BEGIN INIT INFO # Provides: urandom # Required-Start: $local_fs mountvirtfs
meta/recipes-core/sysvinit/sysvinit/bootlogd.init +1 -0
@@ -1,4 +1,5 @@ #! /bin/sh +# chkconfig: S 99 01 ### BEGIN INIT INFO # Provides: bootlogd # Required-Start:
meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.init +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh +# chkconfig: 35 99 01 ### BEGIN INIT INFO # Provides: tcf-agent # Default-Start: 3 5
meta/recipes-extended/cronie/cronie/crond.init +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh +# chkconfig: 2345 90 10 ### BEGIN INIT INFO # Provides: crond crontab # Default-Start: 2345
meta/recipes-extended/rpcbind/rpcbind/init.d +1 -0
@@ -2,6 +2,7 @@ # # start/stop rpcbind daemon. +# chkconfig: S2345 12 88 ### BEGIN INIT INFO # Provides: rpcbind # Required-Start: $network
Signature · 1 line
2.17.1