Originally posted by: manly
Originally posted by: N11
Originally posted by: manly
FYI:
Runlevels are how you choose to define them, these are system defaults.
I could be wrong, but I disagree here. Yes, runlevels are arbitrary numbers, but they are de facto and now LSB standards.
Furthermore, the OS defines the runlevels unless you really muck with the system and hack the init scripts. So for all intents and purposes, they are not user customizable.
What is fully customizable are which services you choose to run in any given runlevel.
I think you may have missed the point --
runlevels are defined by which services are started or not started when initialized -- One can very easily maintain a runlevel 3 with no network services.
I still don't agree with you here, specifically the bolded emphasis I added.
There are generally accepted defaults on what basic operating system functionality is activated in each runlevel (listed in /etc/inittab).
The sysadmin controls which additional scripts (e.g. services) they'd like to execute in each runlevel.
For 99% of the users out there, the (de facto and now LSB) standard defaults for each runlevel apply.
Take runlevel 3 for example, that's most commonly multiuser with networking activated. Whether or not you actually run any networking
services on your own box doesn't change the standard runlevel defaults unless you purposely decide to alter the system in that way.
If I tell another Linux user to start up in runlevel 3, they know what I mean. They don't ask me if Apache, et al should or shouldn't be started. The way I would have stated it is "scripts and symlinks beneath /etc/rc.d/ define which services (and admittedly also some operating system features) are started in the standard runlevels".
My point is actually confirmed by your original advice to edit the default runlevel from 5 to 3 in /etc/inittab. You could have instead advised to remove the symlinks starting kdm/gdm in /etc/rc.d/rc5.d/ but that would not be the standard solution.
I can see how/why the point is debatable, but obviously we have a difference of opinion.
😉