DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 30th August 2008
smooth187 smooth187 is offline
New User
 
Join Date: May 2008
Posts: 4
Default start stop services ?

is there anything like this
/etc/rc.d/service-name {start} {stop} {status} {reload} {forceXXX} {rcvar}
in openbsd
for example ssh named or anything
i am a freebsd user but i started 2 love openbsd more now if only i can get this to work like free & net
Reply With Quote
  #2   (View Single Post)  
Old 31st August 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

No there isn't something like that in OpenBSD. Learn to like it even if you don't

To stop sshd :
Code:
pkill -TERM sshd
To force sshd to reread it's configuration file:
Code:
pkill -HUP sshd
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 31st August 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

rc.d scripts are a System V Unix type thing, OpenBSD doesn't have that.

Stopping and starting "services" is done in different ways, depending on the service you want...

Now, you typically shouldn't need to kill OpenSSH... if you've made alterations to the configuration file, send SIGHUP to reload the file. (As documented in the man page.).

To terminate a process, you would either use a combination of ps(1) and kill(1), or pkill(1).

For BIND, once enabled in rc.conf, a rndc(8) key is generated at the next boot.. with that, you can monitor the status of the daemon.

Some base daemons have "ctl" utilities, Apache for example, has apachectl(8).

That's how it should be... IMHO, but I'm a little enthusiastic.

Last edited by BSDfan666; 31st August 2008 at 12:17 AM.
Reply With Quote
  #4   (View Single Post)  
Old 31st August 2008
smooth187 smooth187 is offline
New User
 
Join Date: May 2008
Posts: 4
Default

great really thanx allot guys for the reply i appreciated
Reply With Quote
  #5   (View Single Post)  
Old 31st August 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Along with the answers already posted, your best bet is to study the manpage for each & every daemon you want to run. The accuracy of OpenBSD's manpages is very important to the developers, & signficant time & effort is spend to guarantee their correctness.
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
start and stop KDE from shell ccc FreeBSD General 8 8th July 2010 10:12 PM
Stop beeping Business_woman FreeBSD General 3 15th January 2009 09:00 PM
KDE3 install stop error delboy FreeBSD Ports and Packages 2 20th November 2008 10:02 AM
Questions about my home configuration services aleunix OpenBSD Security 9 12th June 2008 01:54 PM
Learn which services are listening on your box anomie Guides 5 14th May 2008 09:59 AM


All times are GMT. The time now is 11:10 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick