LinuxGuruz
  • Last 5 Forum Topics
    Replies
    Views
    Last post


The Web Only This Site
  • BOOKMARK

  • ADD TO FAVORITES

  • REFERENCES


  • MARC

    Mailing list ARChives
    - Search by -
     Subjects
     Authors
     Bodies





    FOLDOC

    Computing Dictionary




  • Text Link Ads






  • LINUX man pages
  • Linux Man Page Viewer


    The following form allows you to view linux man pages.

    Command:

    runlevel

    
    
    

    SYNOPSIS

           runlevel [OPTION]...  [UTMP]
    
    
    

    DESCRIPTION

           runlevel  reads  the  system UTMP file, which defaults to /var/run/utmp
           when no alternate filename is given, to locate the most recent runlevel
           record.
    
           The previous and current runlevel from that record are output separated
           by a single space.  If there is no previous runlevel in the record, the
           letter N will be substituted.
    
           If  no  runlevel record can be found, runlevel outputs the word unknown
           and exits with an error.
    
           During system boot, the environment variables  RUNLEVEL  and  PREVLEVEL
           will  be  set  by  the  init(8) daemon, these come from the runlevel(7)
           event generated by telinit(8) or shutdown(8).
    
           When these environment variables are set, runlevel will output the val-
           ues  from  these instead.  Thus runlevel can be used in rc scripts as a
           replacement for the System-V who(1) -r command.
    
    
    

    OPTIONS

           --quiet
                  Does not output the current and previous runlevel, nor  does  it
                  output  unknown  in  the case of error (but it will exit with an
                  error code).
    
                  This may be used to test for the presence of a  runlevel  entry,
                  or to check for errors reading from the file.
    
    
    

    EXIT STATUS

           runlevel  will exit with status 0 if a UTMP record was found, otherwise
           it will exit with status 1.
    
    
    

    ENVIRONMENT

           RUNLEVEL
                  runlevel will read the current runlevel  from  this  environment
                  variable if set in preference to reading from /var/run/utmp
    
           PREVLEVEL
                  runlevel  will  read the previous runlevel from this environment
                  variable if RUNLEVEL
                   was given, in preference to reading from /var/run/utmp
    
    
    

    FILES

           /var/run/utmp
                  Where the current and previous runlevels will be read from.
    
    
    

    NOTES

           The Upstart init(8) daemon does not keep  track  of  runlevels  itself,
    
    
    

    REPORTING BUGS

           Report bugs at <https://launchpad.net/upstart/+bugs>
    
    
    

    COPYRIGHT

           Copyright (C) 2009 Canonical Ltd.
           This is free software; see the source for copying conditions.  There is
           NO  warranty;  not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
           PURPOSE.
    
    
    

    SEE ALSO

           runlevel(7) init(8) telinit(8) shutdown(8) who(1)
    
    
    

    Upstart 2009-07-09 runlevel(8)

    
    
  • MORE RESOURCE


  • Linux

    The Distributions





    Linux

    The Software





    Linux

    The News



  • MARKETING






  • Toll Free

webmaster@linuxguruz.com
Copyright © 1999 - 2016 by LinuxGuruz