I'm running Ubuntu where I have the directories /etc/rc0.d, /etc/rc1.d, /etc/rc2.d, ..., /etc/rc6.d.
Example files from my machine:
directory example symlinks in the dir
------------------------------------------
/etc/rc1.d: K76dovecot, K77ntp
/etc/rc2.d: S23ntp, S24dovecot
/etc/rc3.d: S23ntp, S24dovecot
/etc/rc4.d: S23ntp, S24dovecot
/etc/rc5.d: S23ntp, S24dovecot
Questions:
- What's the purpose of the multiple "rc" directories?
- Why did Ubuntu install duplicates of
dovecotandntpinto all the directories exceptrc0.dandrc6.d? - If they are specified multiple times like above, are they actually executed multiple times?
- Can you tell from the above in what order
dovecotandntpwill execute at startup? - What is the proper way to tell Ubuntu to always execute
ntpbeforedovecotat startup?