# ls /etc/init.d/rc5.d/
K05cron K11splash S01fbset S11powersaved K05xinetd K11sshd S01jexec S11qlremote K07libvirtd K14nfs S01random S11raw K07oracle K14nfsboot S01resmgr S11running-kernel K07postfix K14smbfs S02haldaemon S11splash K07xendomains K15auditd S05network S11sshd K08cups K15portmap S06open-iscsi S13o2cb K08nscd K15splash_early S06owcimomd S13slpd K08ocfs2 K16open-iscsi S06syslog S14cups K08suseRegister K16owcimomd S07auditd S14nscd K08xend K16syslog S07portmap S14ocfs2 K09o2cb K17network S07splash_early S14suseRegister K09slpd K20haldaemon S07ultrapath S14xend K11alsasound K21acpid S08nfs S15libvirtd K11irq_balancer K21dbus S08nfsboot S15oracle K11microcode K21fbset S08smbfs S15postfix K11novell-zmd K21jexec S11alsasound S15xendomains K11powersaved K21random S11irq_balancer S17cron K11qlremote K21resmgr S11kbd S17xinetd K11raw S01acpid S11microcode K11running-kernel S01dbus S11novell-zmd
It can be found that when the system is powered off, it stops the iSCSI service prior to the network service, preventing the power-off process from being terminated.
# ls /etc/init.d/rc5.d/
K05cron K11running-kernel S01dbus S11powersaved K05xinetd K11splash S01fbset S11qlremote K07libvirtd K11sshd S01jexec S11raw K07oracle K14nfs S01random S11running-kernel K07postfix K14nfsboot S01resmgr S11splash K07xendomains K14smbfs S02haldaemon S11sshd K08cups K15auditd S05network S13o2cb K08nscd K15portmap S06owcimomd S13slpd K08ocfs2 K15splash_early S06syslog S14cups K08suseRegister K16owcimomd S07auditd S14nscd K08xend K16syslog S07portmap S14ocfs2 K09o2cb K17network S07splash_early S14suseRegister K09slpd K20haldaemon S08nfs S14xend K11alsasound K21acpid S08nfsboot S15libvirtd K11irq_balancer K21dbus S08smbfs S15oracle K11microcode K21fbset S11alsasound S15postfix K11novell-zmd K21jexec S11irq_balancer S15xendomains K11powersaved K21random S11kbd S17cron K11qlremote K21resmgr S11microcode S17xinetd K11raw S01acpid S11novell-zmd S99ultrapath
The starting letter S means the script is executed with the parameter start as the system starts up (if the link name is started with the letter K, it means the script would be executed with the parameter stop as the system stops). For example, S17xinetd means the following command would be executed as the system starts up:
# /etc/init.d/rc5.d /S17xinetd start
When the system is powered off, it stops all the service items started with the letter K in the ascending order of size.
It is recommended to stop the iSCSI service first or add it as a system service before powering off.