nixCraft Linux Forum

nixCraft

Linux 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

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-08-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
Sponsored Links
  #2 (permalink)  
Old 01-09-2006, 11:06 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
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

Bookmarks


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 On

Similar Threads

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


All times are GMT +5.5. The time now is 06:30 PM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

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