Results 1 to 5 of 5

Thread: Question on disabling services.

  1. #1
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,467
    Distro
    Ubuntu Mate

    Question Question on disabling services.

    Hi.
    I have disabled these services in Boot-Up Manager & Simple Service Manager.

    acpid-support (keep on for laptops)
    apache2
    bluetooth
    cups
    dansguardian
    jackd
    laptop-mode (keep on for laptops)
    lirc
    samba
    timidity
    winbind


    Is it safe to disable the above for my Desktop PC? Also are there more services that I can safely disable?
    1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
    GNU/Linux User #470660 – Ubuntu User #28226
    Isaac Asimov: "I do not fear computers. I fear the lack of them."

  2. #2
    Join Date
    Dec 2009
    Beans
    2

    Thumbs down Re: Question on disabling services.

    Is there any need to disable these services? Please correct me if i'm wrong but as far as i know the services are now started and stopped by events (see upstart). So they are only started if they will be needed.

  3. #3
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,467
    Distro
    Ubuntu Mate

    Post Re: Question on disabling services.

    Hi apreiml.
    Is upstart new as of from Ubuntu 9.10? This must be why the Services option was removed from System -> Administration.
    1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
    GNU/Linux User #470660 – Ubuntu User #28226
    Isaac Asimov: "I do not fear computers. I fear the lack of them."

  4. #4
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Question on disabling services.

    Quote Originally Posted by Rytron View Post
    Hi apreiml.
    Is upstart new as of from Ubuntu 9.10? This must be why the Services option was removed from System -> Administration.
    Upstart was first included in Ubuntu in the 6.10 (Edgy Eft) release in late 2006, replacing sysvinit. While the new Upstart daemon is used, most of the services are managed using the old sysvinit scripts. The reason for this has been attributed to missing features that prevent the complete replacement of the existing scripts with native Upstart service descriptions. Since then, Ubuntu 9.10 (Karmic Koala) introduced native Upstart bootup as of Alpha 6.

    http://en.wikipedia.org/wiki/Upstart

    The Services option was removed because services-admin is not compatible with the Upstart jobs.

    Some of the services are still managed by SysV style init scripts. You can use BUM to disable this services, but you have to manually disable the ones managed by the new Upstart jobs.

    Jobs are defined in files placed in /etc/init, the name of the job is the filename under this directory without the .conf extension.

    Simply changing the .conf extension of a file will disable the service. i.e.:
    Code:
    mv /etc/init/gdm.conf /etc/init/gdm.conf.noexec
    will disable gdm.

    Another method to disable a job is to edit the .conf file.

    For example, to disable gdm you can edit the file to something like this:
    Code:
    description     "GNOME Display Manager"
    author          "William Jon McCann <mccann@jhu.edu>"
    
    start on (never
              and filesystem
              and started hal
              and tty-device-added KERNEL=tty7
              and (graphics-device-added or stopped udevtrigger))
    stop on runlevel [016]
    ...

    filesystem, started hal, tty-device-added KERNEL=tty7, graphics-device-added and stopped udevtrigger are events.

    By default gdm is started when the filesystem is mounted and the hal daemon is running and so on...

    If you add another event (i.e. never) to the list gdm will not be started until that event is emitted.

    http://upstart.ubuntu.com/getting-started.html

    http://upstart.ubuntu.com/wiki/

  5. #5
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,467
    Distro
    Ubuntu Mate

    Lightbulb Re: Question on disabling services.

    Thank you sisco311. Thats an impressive post.
    1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
    GNU/Linux User #470660 – Ubuntu User #28226
    Isaac Asimov: "I do not fear computers. I fear the lack of them."

Tags for this Thread

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
  •