rc_runlevel_list man page on Gentoo

Man page or keyword search:  
man Server   6889 pages
apropos Keyword Search (all sections)
Output format
Gentoo logo
[printable version]

RC_RUNLEVEL(3)		    System Manager's Manual		RC_RUNLEVEL(3)

NAME
     rc_runlevel_get, rc_runlevel_exists, rc_runlevel_list, rc_runlevel_set,
     rc_runlevel_starting, rc_runlevel_stopping — RC runlevel functions

LIBRARY
     Run Command library (librc, -lrc)

SYNOPSIS
     #include <rc.h>

     char *
     rc_runlevel_get(void);

     bool
     rc_runlevel_exists();

     RC_STRINGLIST *
     rc_runlevel_list(void);

     bool
     rc_runlevel_set(const char *runlevel);

     bool
     rc_runlevel_starting(void);

     bool
     rc_runlevel_stopping(void);

DESCRIPTION
     These functions provide a means of querying OpenRC to find out which run‐
     level we are in and what services are in which runlevel.

IMPLEMENTATION NOTES
     Each function that returns char * returns a malloced NULL terminated
     string that should be freed when done.

     Each function that returns RC_STRINGLIST * should by freed by calling
     rc_stringlist_free() when done.

FILES
     /etc/init.d/functions.sh is provided by OpenRC, which allows shell
     scripts to use the above functions.  For historical reasons our verbose
     functions are prefixed with v instead of suffixed. So einfov becomes
     veinfo, einfovn becomes veinfon.  Rinse and repeat for the other verbose
     functions.

SEE ALSO
     malloc(3), free(3) rc_stringlist_free(3)

AUTHORS
     Roy Marples <roy@marples.name>

OpenRC				 Mar 16, 2008				OpenRC
[top]

List of man pages available for Gentoo

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net