We are planning to migrate from an older version of Ubuntu to (10.x) to the latest release of Amazon Linux. I'm trying to identify how to replicate the K and S scripts in the rc0.d
, rc1.d
etc directories.
My question is, how to determine which is the default level?
There is no /etc/inittab
, and the man page says it's been replaced by files in /etc/init
. But they rcx.d
directories contains references to specific apps within our system, while the /etc/init
contains a bunch of .conf
files. I'm thinking this somehow points to the rcx.d directories, perhaps via the rc.conf
, rcS.conf
or rc-sysinit.conf
but can't lock down the actual startup level.
rc
directories. To determine the current runlevel, use therunlevel
command, the default is 2.