Detect Linux Runlevel
marko at pacujo.net
Mon Dec 5 17:29:58 EST 2016
Chris Angelico <rosuav at gmail.com>:
> On Tue, Dec 6, 2016 at 8:38 AM, Lew Pitcher
> <lew.pitcher at digitalfreehold.ca> wrote:
>> The OP asked for the runlevel, not the systemd target.
> Runlevels don't exist in systemd. And systemd targets don't exist in
> Upstart. The question "what runlevel are we in" does not make sense
> unless you're using an init system that works on the basis of
> runlevels (eg sysvinit).
In fact, systemd is not an init system for Linux. Linux is the kernel of
the systemd operating system. Systemd is the
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them
More information about the Python-list