Results 1 to 9 of 9

Thread: Source code for shutdown command

  1. #1
    Join Date
    Sep 2006
    Beans
    279
    Distro
    Ubuntu 9.10 Karmic Koala

    Source code for shutdown command

    Can anyone let me know where I could i find the source code for the shutdown command?

  2. #2
    Join Date
    Jun 2006
    Location
    Gwangju, Korea
    Beans
    3,479

    Re: Source code for shutdown command

    Code:
    ~:$ which shutdown
    /sbin/shutdown
    ~:$ dpkg --search /sbin/shutdown
    upstart-compat-sysv: /sbin/shutdown
    ~:$ apt-cache show upstart-compat-sysv 
    Package: upstart-compat-sysv
    Priority: required
    Section: base
    Installed-Size: 260
    Maintainer: Scott James Remnant <scott@ubuntu.com>
    Architecture: i386
    Source: upstart
    Version: 0.3.8-2
    Replaces: upstart (<< 0.3.1-1), sysvinit
    Depends: libc6 (>= 2.6-1), upstart (= 0.3.8-2), sysvutils (>= 2.86.ds1-14.1ubuntu11), sysv-rc, initscripts
    Filename: pool/main/u/upstart/upstart-compat-sysv_0.3.8-2_i386.deb
    Size: 74508
    MD5sum: 46d2a6e29a2cbc88647c53dd81827232
    SHA1: 659ba7d1d47983d51624dbc14feaa6e8ccd5ddfd
    SHA256: a791b224120c1d3b9a2f1a49fbbebab783a052735b0f75ef01833ae7c2a8bfbb
    Description: compatibility for System-V-like init
     This package contains compatibility tasks and utilities that emulate
     the behaviour of the original sysvinit package, including runlevels,
     and ensures that the initscripts in /etc/rc*.d are still run.
    Bugs: mailto:ubuntu-users@lists.ubuntu.com
    Origin: Ubuntu
    The answer is in bold (and you can see how I found it).

  3. #3
    Join Date
    Jun 2007
    Beans
    538

    Re: Source code for shutdown command

    In the package sysvinit

    Gerald

  4. #4
    Join Date
    Jun 2006
    Location
    Gwangju, Korea
    Beans
    3,479

    Re: Source code for shutdown command

    Quote Originally Posted by geraldm View Post
    In the package sysvinit
    Except for Ubuntu Feisty or later.

  5. #5
    Join Date
    Sep 2006
    Beans
    279
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Source code for shutdown command

    Thanks guys for the reply. One more question that I just posted by creating a new thread...i just want to ask it here

    I am trying to compile and have my own kernel appear on the grub menu apart from the current existing kernels...and this what I did

    I am following this how to https://help.ubuntu.com/community/Kernel/Compile.

    it says after
    Code:
    make menuconfig
    and
    Code:
    make-kpkg --rootcmd fakeroot --initrd --append-to-version=-some-string-here kernel-image kernel-headers
    ,

    you would find packages generated in ~/. But i did not find any.

    Help on this please?

  6. #6
    Join Date
    Sep 2006
    Beans
    279
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Source code for shutdown command

    Quote Originally Posted by mssever View Post
    Code:
    ~:$ which shutdown
    /sbin/shutdown
    ~:$ dpkg --search /sbin/shutdown
    upstart-compat-sysv: /sbin/shutdown
    ~:$ apt-cache show upstart-compat-sysv 
    Package: upstart-compat-sysv
    Priority: required
    Section: base
    Installed-Size: 260
    Maintainer: Scott James Remnant <scott@ubuntu.com>
    Architecture: i386
    Source: upstart
    Version: 0.3.8-2
    Replaces: upstart (<< 0.3.1-1), sysvinit
    Depends: libc6 (>= 2.6-1), upstart (= 0.3.8-2), sysvutils (>= 2.86.ds1-14.1ubuntu11), sysv-rc, initscripts
    Filename: pool/main/u/upstart/upstart-compat-sysv_0.3.8-2_i386.deb
    Size: 74508
    MD5sum: 46d2a6e29a2cbc88647c53dd81827232
    SHA1: 659ba7d1d47983d51624dbc14feaa6e8ccd5ddfd
    SHA256: a791b224120c1d3b9a2f1a49fbbebab783a052735b0f75ef01833ae7c2a8bfbb
    Description: compatibility for System-V-like init
     This package contains compatibility tasks and utilities that emulate
     the behaviour of the original sysvinit package, including runlevels,
     and ensures that the initscripts in /etc/rc*.d are still run.
    Bugs: mailto:ubuntu-users@lists.ubuntu.com
    Origin: Ubuntu
    The answer is in bold (and you can see how I found it).
    Err, sorry to bother but still did not get as how i could get the source file after this.

  7. #7
    Join Date
    Jun 2006
    Location
    Gwangju, Korea
    Beans
    3,479

    Re: Source code for shutdown command

    Quote Originally Posted by ittiam View Post
    Err, sorry to bother but still did not get as how i could get the source file after this.
    Sorry. I assumed that you knew how to get source packages. The line in bold shows that the source package is called upstart. So,
    Code:
    ~:$ mkdir upstart-source
    ~:$ cd upstart-source/
    ~/upstart-source:$ apt-get source upstart
    Of course, you'll need to have the proper deb-src lines in your /etc/apt/sources.list (or enable them from Synaptic).

  8. #8
    Join Date
    Mar 2005
    Location
    Texas
    Beans
    1,675
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Source code for shutdown command

    Quote Originally Posted by ittiam View Post
    Thanks guys for the reply. One more question that I just posted by creating a new thread...i just want to ask it here

    I am trying to compile and have my own kernel appear on the grub menu apart from the current existing kernels...and this what I did

    I am following this how to https://help.ubuntu.com/community/Kernel/Compile.

    it says after
    Code:
    make menuconfig
    and
    Code:
    make-kpkg --rootcmd fakeroot --initrd --append-to-version=-some-string-here kernel-image kernel-headers
    ,

    you would find packages generated in ~/. But i did not find any.

    Help on this please?
    I think that howto might be off, they usually are put in /usr/src
    100 buckets of bits on the bus,
    100 buckets of bits,
    Take one down, short it to ground,
    FF buckets of bits on the bus.

  9. #9
    Join Date
    Dec 2009
    Beans
    6

    Re: Source code for shutdown command

    Well! it helps me.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •