From 359957ee23e8dad97f6c75969d7ecfe4d3c4369f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 23 Jun 2010 01:49:57 +0200 Subject: man: document runlevel and systemd-install --- man/runlevel.xml | 149 +++++++++++++++++++++++++++++++++++++++++++ man/systemd-install.xml | 165 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 314 insertions(+) create mode 100644 man/runlevel.xml create mode 100644 man/systemd-install.xml (limited to 'man') diff --git a/man/runlevel.xml b/man/runlevel.xml new file mode 100644 index 0000000000..1404ff6d2f --- /dev/null +++ b/man/runlevel.xml @@ -0,0 +1,149 @@ + + + + + + + + + runlevel + systemd + + + + Developer + Lennart + Poettering + lennart@poettering.net + + + + + + runlevel + 8 + + + + runlevel + Print previous and current SysV runlevel + + + + + runlevel options + + + + + Description + + runlevel prints the previous + and current SysV runlevel if they are known. + + The two runlevel characters are seperated by a + single space character. If a runlevel cannot be + determined N is printed instead. If neither can be + determined the word "unknown" is printed. + + Unless overriden in the environment this will + check the utmp database for recent runlevel + changes. + + The following option is understood: + + + + --help + + Prints a short help + text and exits. + + + + + + + Exit status + + If one or both runlevels could be determined, 0 + is returned, a non-zero failure code otherwise. + + + + + Environment + + + + $RUNLEVEL + + If + $RUNLEVEL is set, + runlevel will print + this value as current runlevel and + ignore utmp. + + + + $PREVLEVEL + + If + $PREVLEVEL is set + runlevel will print + this value as previous runlevel and + ignore utmp. + + + + + + Files + + + + /var/run/utmp + + The utmp database + runlevel reads the + previous and current runlevel + from. + + + + + + + Notes + + This is a legacy call available for compatbility + only. It should not be used anymore, as the concept of + runlevels is obselete. + + + + See Also + + systemctl1, + + + + diff --git a/man/systemd-install.xml b/man/systemd-install.xml new file mode 100644 index 0000000000..9881e9819e --- /dev/null +++ b/man/systemd-install.xml @@ -0,0 +1,165 @@ + + + + + + + + + systemd-install + systemd + + + + Developer + Lennart + Poettering + lennart@poettering.net + + + + + + systemd-install + 1 + + + + systemd-install + Enable or disable a systemd unit + definition file + + + + + systemd-install options name + + + systemd-install options name + + + systemd-install options name + + + + + Description + + systemd-install enables or + disables systemd units, or checks whether they are + enabled. + + The following options are understood: + + + + --help + + Prints a short help + text and exits. + + + + --force + + Enable/disable a + service even if it conflicts + with/contradicts another service. This + might have the effect of disabling + another service that was + enabled. + + + + --system + + Enable/disable a + system service. + + + + --session + + Enable/disable a + session service for the calling + user. + + + + --global + + Enable/disable a + session service for all + users. + + + + The following verbs are understood: + + + + enable + + Enable a unit. This + will create a number of symlinks as + encoded in the [Install] section of a + unit file. + + + + disable + + Disable a unit. This + will removed a number of symlinks as + encoded in the [Install] section of a + unit file. + + + + test + + Checks whether any of + the units specified are + installed. This will check for the + existance of a number of symlinks as + encoded in the [Install] section of a + unit file. + + + + + + + Exit status + + On success 0 is returned, a non-zero failure + code otherwise. + + + + See Also + + systemctl1, + systemd.unit5 + + + + -- cgit v1.2.3-54-g00ecf