Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
6 replies Latest Post - ‏2010-01-10T17:01:27Z by GanesanBI
GanesanBI
GanesanBI
24 Posts
ACCEPTED ANSWER

Pinned topic Runlevel:

‏2010-01-07T09:57:50Z |
Hi friends,
Why i con't change default runlevel other than 2 in Aix? I can change but after rebooting, Machine starts in runlevel 2 only.

Please direct me in a correct path to become an Aix system administrator in Indian Railways department.

Thank you.,

S.Ganesan.
Updated on 2010-01-10T17:01:27Z at 2010-01-10T17:01:27Z by GanesanBI
  • Morten_Torstensen
    Morten_Torstensen
    1 Post
    ACCEPTED ANSWER

    Re: Runlevel:

    ‏2010-01-07T12:11:28Z  in response to GanesanBI
    Runlevels are not really used in AIX. Are you sure you want to use them? If you really really want to, change the "init:2:initdefault:" line at the top of /etc/inittab (below the comments).

    The AIX way would be to make groups in SRC and start/stop them as needed.
    • GanesanBI
      GanesanBI
      24 Posts
      ACCEPTED ANSWER

      Re: Runlevel:

      ‏2010-01-07T14:30:16Z  in response to Morten_Torstensen
      Yes Mr.Morten, i can add any line to /etc/inittab file using # mkitab command. Is this following command right for boot with runlevel 5?

      • # mkitab abc:5:wait:test

      Please tell me, will it boot in runlevel 5 after boot my machine?

      Please direct me in a correct path to become an Aix system administrator in Indian Railways department.

      Thank you.,

      S.Ganesan.
      • hdkutz
        hdkutz
        221 Posts
        ACCEPTED ANSWER

        Re: Runlevel:

        ‏2010-01-07T15:31:59Z  in response to GanesanBI
        Hello,
        as mentioned before:
        You do not need to add another entry to inittab with mkitab.
        Change the initdefault Entry in inittab to the desired runlevel.
        Your machine will boot to this Level.
        <snip>
        : Note - initdefault and sysinit should be the first and second entry.
        init:2:initdefault:
        brc::sysinit:/sbin/rc.boot 3 >/dev/console 2>&1 # Phase 3 of system boot
        <snip>

        E.G:
        <snip>
        : Note - initdefault and sysinit should be the first and second entry.
        init:5:initdefault:
        brc::sysinit:/sbin/rc.boot 3 >/dev/console 2>&1 # Phase 3 of system boot
        <snip>

        Cheers,
        ku
        • GanesanBI
          GanesanBI
          24 Posts
          ACCEPTED ANSWER

          Re: Runlevel:

          ‏2010-01-08T15:50:31Z  in response to hdkutz
          Thank you Mr.Hdkutz, i'll try this. Could u tell me how can i open multiple session in Aix? In linux, i can open 5 users session in terminal mode by holding following keys, <Ctrl> + <Alt> + <F2> to <F6>.

          Now, i'm student, learning Aix very interestingly, so let me know in detail or else give me a link to learn.

          Please direct me in a correct path to become an Aix system administrator in Indian Railways department.

          Thank you.,

          S.Ganesan.
          • Kosala
            Kosala
            141 Posts
            ACCEPTED ANSWER

            Re: Runlevel:

            ‏2010-01-10T04:57:14Z  in response to GanesanBI
            Hi,

            The configuration for the multiple terminals is done through /etc/inittab. In AIX there is only one getty for the /dev/console. I do not think the multiple terminals will work like in Linux, since I can't find any tty* in AIX. But you can start multiple getty instances in AIX, which you can bind to either a serial port or a modem.

            Have a look at getty man page.

            Cheers,
            Kosala
            • GanesanBI
              GanesanBI
              24 Posts
              ACCEPTED ANSWER

              Re: Runlevel:

              ‏2010-01-10T17:01:27Z  in response to Kosala
              Thank you Mr.Kosala, for your detailed answer of some of my questions. We'll meet in my another question. Thank you once again.

              Now, i'm a student, learning Aix very interestingly, so let me know in detail or else give me a link to learn.

              Please direct me in a correct path to become an Aix system administrator in Indian Railways department.

              Thank you.,

              S.Ganesan.