Quantcast
Viewing all articles
Browse latest Browse all 6052

/etc/init.d execution order & how it relates to /etc/rcN.d

After a spot of digging around I have established – I may be wrong since my knowledge of these issues is rather sketchy – that the scripts in /etc/init.d are run in the order determined by the symlinks in /etc/rcN.d.

It is not quite clear to me why I have, on Ubuntu 14.10, a whole sequence of rcN.d folders with N running from 0 to 5. runlevel indicates that the current runlevel is N 2. In /etc/rc2.d I have the files:

S01rsyslogS02memcached...S03grub-common

I assume this indicates that the S01 scripts will run prior to the S02 scripts etc.

Now here is what I need to do – run my own script in init.d AFTER everything else. Would this be the right thing to do?

  • Create the script
  • chmod +x it
  • create a symlink to it in /etc/rc2.d
  • name that symlink with S04...

Viewing all articles
Browse latest Browse all 6052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>