Нудно запускать апач последним. Имеем:
root@debian: # cat /etc/inittab
id:3:initdefault:
root@debian: /etc/rc3.d # ll
total 4
-rw-r--r-- 1 root root 677 Jul 14 2013 README
lrwxrwxrwx 1 root root 14 May 14 16:12 S01motd -> ../init.d/motd
lrwxrwxrwx 1 root root 17 May 14 16:40 S13rpcbind -> ../init.d/rpcbind
lrwxrwxrwx 1 root root 20 May 14 16:40 S14nfs-common -> ../init.d/nfs-common
lrwxrwxrwx 1 root root 17 May 14 16:40 S16rsyslog -> ../init.d/rsyslog
lrwxrwxrwx 1 root root 32 May 14 16:40 S16virtualbox-guest-utils -> ../init.d/virtualbox-guest-utils
lrwxrwxrwx 1 root root 17 May 14 17:23 S17apache2 -> ../init.d/apache2
lrwxrwxrwx 1 root root 15 May 14 17:06 S18acpid -> ../init.d/acpid
lrwxrwxrwx 1 root root 13 May 14 17:06 S18atd -> ../init.d/atd
lrwxrwxrwx 1 root root 14 May 14 17:06 S18cron -> ../init.d/cron
lrwxrwxrwx 1 root root 15 May 14 17:06 S18exim4 -> ../init.d/exim4
lrwxrwxrwx 1 root root 13 May 14 17:06 S18ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root 18 May 14 17:06 S20bootlogs -> ../init.d/bootlogs
lrwxrwxrwx 1 root root 18 May 14 17:06 S21rc.local -> ../init.d/rc.local
lrwxrwxrwx 1 root root 19 May 14 17:06 S21rmnologin -> ../init.d/rmnologin
Делаем:
# update-rc.d apache2 defaults 92
update-rc.d: using dependency based boot sequencing
root@debian: /etc/rc3.d # ll
total 4
-rw-r--r-- 1 root root 677 Jul 14 2013 README
lrwxrwxrwx 1 root root 14 May 14 16:12 S01motd -> ../init.d/motd
lrwxrwxrwx 1 root root 17 May 14 16:40 S13rpcbind -> ../init.d/rpcbind
lrwxrwxrwx 1 root root 20 May 14 16:40 S14nfs-common -> ../init.d/nfs-common
lrwxrwxrwx 1 root root 17 May 14 16:40 S16rsyslog -> ../init.d/rsyslog
lrwxrwxrwx 1 root root 32 May 14 16:40 S16virtualbox-guest-utils -> ../init.d/virtualbox-guest-utils
lrwxrwxrwx 1 root root 17 May 14 17:23 S17apache2 -> ../init.d/apache2
lrwxrwxrwx 1 root root 15 May 14 17:06 S18acpid -> ../init.d/acpid
lrwxrwxrwx 1 root root 13 May 14 17:06 S18atd -> ../init.d/atd
lrwxrwxrwx 1 root root 14 May 14 17:06 S18cron -> ../init.d/cron
lrwxrwxrwx 1 root root 15 May 14 17:06 S18exim4 -> ../init.d/exim4
lrwxrwxrwx 1 root root 13 May 14 17:06 S18ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root 18 May 14 17:06 S20bootlogs -> ../init.d/bootlogs
lrwxrwxrwx 1 root root 18 May 14 17:06 S21rc.local -> ../init.d/rc.local
lrwxrwxrwx 1 root root 19 May 14 17:06 S21rmnologin -> ../init.d/rmnologin
Апач как был S17 так и остался. Подскажите куда копать? Почему не работает?