一直迷惑/etc/init 与/etc/init/init.d,最近有点时间学习下,打开目录
/etc/init 目录下的都是配置文件
[root@iZ9488z4qfcZ init]# ls
control-alt-delete.conf prefdm.conf rcS-emergency.conf readahead-disable-services.conf tty.conf
init-system-dbus.conf quit-plymouth.conf rcS-sulogin.conf serial.conf
kexec-disable.conf rc.conf readahead-collector.conf splash-manager.conf
plymouth-shutdown.conf rcS.conf readahead.conf start-ttys.conf
/etc/init.d 目录下都是可执行文件,都是开机启动项
[root@iZ9488z4qfcZ init.d]# ls
abrt-ccpp atd functions iptables lvm2-monitor netfs ntpdate rdisc saslauthd sysstat
abrtd auditd gshelld irqbalance mdmonitor network php-fpm restorecond single udev-post
abrt-oops blk-availability haldaemon kdump messagebus nginx postfix rngd smartd vsftpd
acpid cpuspeed halt killall mysqld nscd psacct rsyslog sshd
aegis crond ip6tables lvm2-lvmetad netconsole ntpd quota_nld sandbox svnser
total 1560
drwxr-xr-x. 2 root root 4096 Aug 14 2014 init
lrwxrwxrwx. 1 root root 11 Aug 14 2014 init.d -> rc.d/init.d
lrwxrwxrwx. 1 root root 14 Aug 14 2014 redhat-release -> centos-release
ls -al 看到init.d是/etc/rc.d/init.d的软链接,估计是因为好操作吧,姑且这么认为