Unix Technical Forum

removing daemons

This is a discussion on removing daemons within the Linux Operating System forums, part of the Unix Operating Systems category; --> What's the method/proceedure for removing a boot daemon. I want to remove "sendmail" simply removing the package doesn't seem ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 08:10 AM
craig
 
Posts: n/a
Default removing daemons

What's the method/proceedure for removing a boot daemon.
I want to remove "sendmail"

simply removing the package doesn't seem to do the trick.

I guess I can short circute it by removing it from init.d but there
a more complete method.

thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 08:10 AM
Alan Connor
 
Posts: n/a
Default Re: removing daemons

On Mon, 29 Sep 2003 21:05:03 -0500, craig <craig@stellarnet.com> wrote:
>
>
> What's the method/proceedure for removing a boot daemon.
> I want to remove "sendmail"
>
> simply removing the package doesn't seem to do the trick.
>
> I guess I can short circute it by removing it from init.d but there
> a more complete method.
>
> thank you



That's the ticket. Remove the executable and the script from init.d
and the symlink in /etc/rc whatever.

There's a mini-HOWTO on the ldp site called "small linux" or something
like that, that covers it in detail.

But with sendmail you'll have more to do. Run locate sendmail and start
deleting :-)

--
Later, Alan C
You can find my email address at the website: contact.html
take control of your mailbox ----- elrav1 ----- http://tinyurl.com/l55a
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 08:10 AM
Alan Connor
 
Posts: n/a
Default Re: removing daemons

On Mon, 29 Sep 2003 21:05:03 -0500, craig <craig@stellarnet.com> wrote:
>
>
> What's the method/proceedure for removing a boot daemon.
> I want to remove "sendmail"
>
> simply removing the package doesn't seem to do the trick.
>
> I guess I can short circute it by removing it from init.d but there
> a more complete method.
>
> thank you



Here's a trick that will save you some time:

$ locate sendmail > /home/you/newfile

Go through newfile very carefully and make sure that you delete any
lines containing paths to files that you are not SURE you don't need.

Then do this, as root:

$ while read line; do rm -f $line ; done < /home/you/newfile


--
Later, Alan C
You can find my email address at the website: contact.html
take control of your mailbox ----- elrav1 ----- http://tinyurl.com/l55a
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 08:10 AM
David
 
Posts: n/a
Default Re: removing daemons

craig wrote:
> What's the method/proceedure for removing a boot daemon. I
> want to remove "sendmail" simply removing the package doesn't
> seem to do the trick. I guess I can short circute it by
> removing it from init.d but there a more complete method.


You didn't mention which distro but:

In RedHat:

# ntsysv
and remove the asterisk next to sendmail to stop it from being
started.

In Slackware:
Comment/remark the lines which refer to sendmail in /etc/rc.d/rc.M

# if [ -x /etc/rc.d/rc.sendmail ]; then
# . /etc/rc.d/rc.sendmail start
# fi

Then kill the daemon if it is running and remove the package.

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.0 Kernel 2.4.22 i686 (GCC) 3.2.2
Uptime: 4 days, 3:09, 1 user, load average: 1.07, 1.12, 1.09

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 08:10 AM
Paul Lutus
 
Posts: n/a
Default Re: removing daemons

craig wrote:

> What's the method/proceedure for removing a boot daemon.
> I want to remove "sendmail"


No, you don't. You want to stop it running as a service. That is trivial.

1. Find out what its service status is:

# chkconfig --list sendmail

sendmail 0ff 1ff 2n 3n 4n 5n 6ff

2. Program it not to run in all active runlevels:

# chkconfig --level 2345 sendmail off

3. Stop the currently running daemon, if it is running:

# service sendmail stop

Done. Don't try to remove program files when turning them off is your actual
goal. You might want to reenable the program someday, and that would
require you to reinstall.

>
> simply removing the package doesn't seem to do the trick.


Simply removing the package is way overkill.

>
> I guess I can short circute it by removing it from init.d but there
> a more complete method.


A method like reading the documentation? Yes, there is.

# man chkconfig

--
Paul Lutus
http://www.arachnoid.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 08:11 AM
craig
 
Posts: n/a
Default Re: removing daemons

chkconfig got me up and over that one.
my 2000 "Linux desk reference" doesn't mention chkconfig
I didn't know it existed.

thanks
craig
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-17-2008, 08:12 AM
Paul Lutus
 
Posts: n/a
Default Re: removing daemons

craig wrote:

> chkconfig got me up and over that one.
> my 2000 "Linux desk reference" doesn't mention chkconfig
> I didn't know it existed.


Wow, what an omission. It is crucial to system configuration and control.
I'm glad you found out about it.

--
Paul Lutus
http://www.arachnoid.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-17-2008, 08:12 AM
Michael C.
 
Posts: n/a
Default Re: removing daemons

On Tue, 30 Sep 2003 17:57:06 -0700,
Paul Lutus <nospam@nosite.zzz> wrote:
> craig wrote:
>
> > chkconfig got me up and over that one.
> > my 2000 "Linux desk reference" doesn't mention chkconfig
> > I didn't know it existed.

>
> Wow, what an omission. It is crucial to system configuration and control.
> I'm glad you found out about it.
>

Pretty sure chkconfig is a RedHat utility, it may help you administer a
RH machine, but doesn't help much if it isn't available for your distro.
It's convenient, hardly crucial, and doesn't teach you much.

Michael C.
--
mcsuper5@usol.com http://mcsuper5.freeshell.org/
Registered Linux User #303915 http://counter.li.org/


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-17-2008, 08:12 AM
Paul Lutus
 
Posts: n/a
Default Re: removing daemons

Michael C. wrote:

> On Tue, 30 Sep 2003 17:57:06 -0700,
> Paul Lutus <nospam@nosite.zzz> wrote:
>> craig wrote:
>>
>> > chkconfig got me up and over that one.
>> > my 2000 "Linux desk reference" doesn't mention chkconfig
>> > I didn't know it existed.

>>
>> Wow, what an omission. It is crucial to system configuration and
>> control. I'm glad you found out about it.
>>

> Pretty sure chkconfig is a RedHat utility, it may help you administer a
> RH machine, but doesn't help much if it isn't available for your distro.
> It's convenient, hardly crucial, and doesn't teach you much.


There must be versions of this basic idea on each of the major
distributions. If not, it would be easy to write, because of what this
utility does. It manipulates the placement of file links in the /etc/rc.d
directory tree, the "wiring" of the init scheme.

--
Paul Lutus
http://www.arachnoid.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:48 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com