LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 06-26-2006, 03:02 AM   #1
tritong
Member
 
Registered: Nov 2005
Posts: 40

Rep: Reputation: 15
How to stop daemon on FreeBSD ???


I have use FreeBSD for 3 months.
I don't know how to stop daemon.
I'm logging not as root.
How to stop daemon ???
Are there different way to stop daemon ???

Help me. Thanks
 
Old 06-26-2006, 11:36 AM   #2
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
If it has an rc.d script, you can run it with the "stop" command, e.g.
Code:
# /etc/rc.d/daemon stop
Or with most daemons you can simply just send an interrupt signal to the (parent) program; just use `ps` to find out the daemon's pid and then use the kill command. Some daemons put their pid inside a file, so you consistently do something like
Code:
# kill `cat /var/run/daemon.pid`
You need to be root to do these things, so either (1) login as root, (2) use su, or (3) use sudo. I prefer the last because it's more convenient, more secure (although some will debate this), and leaves a log trail.
 
  


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
Logging with Start stop daemon bigsness Linux - General 0 01-19-2005 03:25 PM
How do I stop the sshd daemon? ebenh Linux - Software 5 09-04-2004 01:06 PM
Howto stop daemon from starting Lawful Linux - General 3 04-30-2004 04:06 PM
How do you stop a daemon from starting at bootup?? rberry88 Fedora 6 02-18-2004 01:44 PM
How to stop and restart sendmail daemon? J_Szucs Linux - Newbie 4 06-11-2002 11:31 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 10:36 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