No log entries found.

Clear message

Feel free to experiment here, after the four dashes below. Please do not create new pages without any meaningful content just to try it out!

You may want to open HelpOnEditing in a new window or tab while you edit.


Formatting

italic bold typewriter

backtick typewriter (configurable)

bigger smaller

preformatted some more
and some more lines too

   1 def syntax(highlight):
   2     print "on"
   3     return None

   1   public void main(String[] args]){
   2      System.out.println("Hello world!");
   3   } 

Linking

HelpOnEditing InterWiki

http://moinmoin.wikiwikiweb.de/ [http://www.python.org/ Python]

someone@example.com

http://c2.com/sig/wiki.gif

Smileys

/!\ Alert

Lists

Bullet

Glossary

Term
Definition

Drawing

drawing:mytest

Heading 1

Heading 2

Heading 3

Heading 4

Runlevels

Upstart should support allowing the user to select the default runlevel from the kernel command line. The following script, which is designed for Ubuntu 8.04 (Hardy Heron), allows upstart to set the runlevel based on kernel command line parameters:

# rc - runlevel compatibility
#
# This task guesses what the "default runlevel" should be and starts the
# appropriate script.
#
# From the kernel command line, specify a desired runlevel by
# writing "init" followed by the runlevel number. For example, you would
# do this for entering runlevel 3:
# kernel /boot/vmlinuz root=/dev/sda1 ro init 3

start on stopped rcS

script
        runlevel --reboot || true

        RL="$(sed -ne 's/.*init \([2-5S]\).*/\1/p' /proc/cmdline || true)"

        if grep -q -w -- "-s\|single\|S" /proc/cmdline; then
            telinit S
        elif [ -n "$RL" ]; then
            telinit $RL
        elif [ -r /etc/inittab ]; then
            RL="$(sed -n -e "/^id:[0-9]*:initdefault:/{s/^id://;s/:.*//;p}" /etc/inittab || true)"
            if [ -n "$RL" ]; then
                telinit $RL
            else
                telinit 2
            fi
        else
            telinit 2
        fi
end script
# vim: sts=4

WikiSandBox (last edited 2008-06-30 18:30:58 by MumiaWotse)