Detect Linux Runlevel

Chris Angelico rosuav at gmail.com
Mon Dec 5 17:24:45 EST 2016


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).

ChrisA


More information about the Python-list mailing list