nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

BSD start daemon

This is a discussion on BSD start daemon within the All about FreeBSD/OpenBSD/NetBSD forums, part of the *BSD Operating systems category; i have freebsd and netbsd as well as OpenBSD i wanna know how to BSD start daemon i.e. services under ...


Go Back   nixCraft Linux Forum > *BSD Operating systems > All about FreeBSD/OpenBSD/NetBSD

Linux answers from nixCraft.


All about FreeBSD/OpenBSD/NetBSD Discuss all about the Rock solid FreeBSD/OpenBSD/NetBSD. You are free to talk about any issues related to BSD administration, networking, services and other stuff, share information or ask doubts.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-01-2006, 12:58 PM
Guest
 
Posts: n/a
Default BSD start daemon

i have freebsd and netbsd as well as OpenBSD i wanna know how to BSD start daemon i.e. services under these oses
Reply With Quote
  #2 (permalink)  
Old 09-01-2006, 11:06 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
OS: Debian GNU/Linux
Posts: 506
Thanks: 0
Thanked 8 Times in 6 Posts
Rep Power: 7
monk has a spectacular aura about monk has a spectacular aura about
Default

if you are using FreeBSD then it has two location (directory) where all scripts stored to start/stop/restart services

Code:
/etc/rc.d/service-name start
/etc/rc.d/service-name stop
/etc/rc.d/service-name restart
Under freebsd ports related service/daemon can be found under /usr/locat/etc/rc.d directory so you can use:
Code:
/usr/local/etc/rc.d/service-name start
/usr/local/etc/rc.d/service-name stop
/usr/local/etc/rc.d/service-name restart

NetBSD use same (above) stuff. OpenBSD don't have /etc/rc.d or /etc/init.d like Linux or Solairs or FreeBSD. It is plain UNIX stuff
To start OpenBSD service/daemon:
Code:
/path/to/daemon &
/path/to/daemon
For example to start OpenBSD sshd and inetd server:
Code:
/usr/sbin/sshd &
/usr/sbin/inetd &
To restart OpenBSD service/daemon:
Code:
kill -HUP `cat /var/run/daemon.pid`
So restart OpenBSD SSHD service/daemon:
Code:
kill -HUP `cat /var/run/sshd.pid`
So restart OpenBSD inetd service/daemon:
Code:
kill -HUP `cat /var/run/inetd.pid`
See our article http://www.cyberciti.biz/nixcraft/vi...t-services.php for more info
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to start Apache2 automatically at boot satimis Web servers 2 03-02-2008 06:03 PM
start program schaapmansz Getting started tutorials 1 26-06-2007 09:49 PM
start and stop service in crontab. gthian Shell scripting 7 31-05-2007 11:04 AM
Automatically restart unix daemon raj Linux software 2 16-12-2006 11:29 AM
start sshd freebsd bsdNoob All about FreeBSD/OpenBSD/NetBSD 1 30-12-2005 12:43 AM


All times are GMT +5.5. The time now is 01:29 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38