LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-26-2007, 07:52 AM   #1
swampdog2002
Member
 
Registered: Jul 2005
Distribution: Slackware 12.2, 13.0, openSUSE 11.2
Posts: 400

Rep: Reputation: 33
Disabling startup services in Debian Etch


I am relatively new to Debian, and would like to know how to disable certain services, such as Network Manager and Bittorrent tracker, from automatically starting at system boot. I am used to Slackware, where you just removed executable permissions in the /etc/rc.d directory, which is obviously different in Debian. I see that, during bootup, scripts are being executed from a /scripts directory, however this directory does not seem to appear in the root directory. Thanks.
 
Old 11-26-2007, 08:39 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
All services are supposed to be started by the files found in the /etc/rc?.d/ directories with the /etc/rc2.d/ directory being the default run level the others (3,4 and 5) are configured identically, these files then have a symbolic link to the corresponding files in the /etc/init.d/ directory. If you wish for a service not to start by default then you can rename/remove it from the /etc/rc2.d directory and your change will be preserved on package upgrade as long as one of the start links still appear in one of the other (3,4 and 5) directories. Or you can use the update-rc.d command to change the link(s) and if you want to start the service after then you can use /etc/init.d/service_name start if you leave the start off the end it will give you the options that can be used like stop, restart, reload ...

For the other part of your question about the programs starting from some /scripts directory there is something weird going on that I have never seen happen on my system unless you mean the /etc/init.d directory which is a normal place for this to happen in. I think I would check to see if somehow your box has been taken over as I don't know of any bittorrent client that starts automatically on boot so that is a little suspicious and it definitely should not be getting started from some /scripts directory on a Debian system.
 
Old 11-26-2007, 09:06 AM   #3
swampdog2002
Member
 
Registered: Jul 2005
Distribution: Slackware 12.2, 13.0, openSUSE 11.2
Posts: 400

Original Poster
Rep: Reputation: 33
I don't believe that there has been any malicious programs installed on this system, since it is just a new install and that it has not been connected to the network yet. I don't have the exact information displayed at boot-up, but the message displayed does indicate that there is something running from a /scripts directory somewhere.
 
Old 11-26-2007, 09:12 AM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by swampdog2002 View Post
I don't believe that there has been any malicious programs installed on this system, since it is just a new install and that it has not been connected to the network yet. I don't have the exact information displayed at boot-up, but the message displayed does indicate that there is something running from a /scripts directory somewhere.
Well then not much chance of it at all, I think we will need to see the exact message to be able to tell you what is going on.
 
Old 11-26-2007, 10:17 AM   #5
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Another way to control startup services is to install sysv-rc-conf (aptitude install sysv-rc-conf or apt-get install sysv-rc-conf) and then run it. You can then check or uncheck services by runlevel. It's a slightly more automated way of controlling services (that is, you don't have to rename anything by hand, just run along a simple ncurses display checking and unchecking to your heart's content).
 
Old 11-26-2007, 03:55 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
the bittorrent service appears to be part of a default install of etch. It's on all my boxes and I never specifically installed it.

sysv-rc-conf is easy enough to use to disable it though. no clue why it's enabled by default.
 
Old 11-26-2007, 04:23 PM   #7
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Quote:
Originally Posted by farslayer View Post
the bittorrent service appears to be part of a default install of etch. It's on all my boxes and I never specifically installed it.

sysv-rc-conf is easy enough to use to disable it though. no clue why it's enabled by default.
Bittorrent is popular enough that it's now part of the default set of programs/services built into the Gnome desktop environment. If you installed the Desktop environment choice during the installation of Etch, it's built into that. (I agree that it's a larger question why Gnome and or Debian made that choice, but at least that might tell you when/how it got installed on your system.)
 
Old 11-26-2007, 07:27 PM   #8
swampdog2002
Member
 
Registered: Jul 2005
Distribution: Slackware 12.2, 13.0, openSUSE 11.2
Posts: 400

Original Poster
Rep: Reputation: 33
Quote:
Well then not much chance of it at all, I think we will need to see the exact message to be able to tell you what is going on.
The exact messages I see at boot are the following:

Code:
Begin: Running /scripts/local-bottom ...
Done
Done
Begin: Running /scripts/init-bottom ...
Again, being relatively new to Debian, I'm not sure where these are being called from.
 
Old 11-26-2007, 07:59 PM   #9
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Well, the first thing to do is figure out which scripts are called. Post the contents of the /etc/rc2.d directory. The easiest way is to use the ls command. Open a terminal, become root with su and enter your root-password. Then, do
Code:
ls -al /etc/rc2.d/ > rc2.txt
This tells the ls command to name all files (the a option) and list the permissions and in this case, to where the link leads too (the l option). It then re-directs that output not to your screen, but to a file (the > re-directs and you name the file, in this case rc2.txt). You'll find that text file in the current directory, so you can view it with
Code:
cat rc2.txt
Substitute cat with gedit if you want something more graphical When you post the contents of the text file, use the code tags (like I did above) to distinguish between the output of a command and your reply.
 
Old 11-26-2007, 08:15 PM   #10
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by swampdog2002 View Post
The exact messages I see at boot are the following:

Code:
Begin: Running /scripts/local-bottom ...
Done
Done
Begin: Running /scripts/init-bottom ...
Again, being relatively new to Debian, I'm not sure where these are being called from.

Apparently it is a combination of udev and initramfs involved in it from an apt-file search on your output.

Code:
apt-file search scripts/init-bottom
udev: usr/share/initramfs-tools/scripts/init-bottom/udev
udev: usr/share/initramfs-tools/scripts/init-bottom/udev
 
Old 11-27-2007, 07:22 AM   #11
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
This thread tells a bit more about those scripts..

http://ubuntuforums.org/showthread.php?t=230672
 
Old 11-27-2007, 08:13 AM   #12
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Rep: Reputation: 30
Quote:
Originally Posted by farslayer View Post
the bittorrent service appears to be part of a default install of etch. It's on all my boxes and I never specifically installed it.

sysv-rc-conf is easy enough to use to disable it though. no clue why it's enabled by default.
Yes, it is installed but it is, in my experience, turned off by default. Check /etc/default/bittorrent

Kent
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Amarok 1.4.4 crashes on startup on Debian Etch Ynot Irucrem Linux - Software 6 12-02-2007 04:23 AM
Control of services at startup in Etch altella Debian 2 07-17-2007 09:49 AM
Disabling startup services Corallis Fedora 2 08-02-2004 11:51 AM
how to auto start services at startup in debian? legolin Debian 3 12-28-2003 10:02 AM
Disabling Startup Services loadedmind Slackware 7 11-07-2003 09:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration