Linux / UNIX Tech Support Forum
This is a discussion on OpenBSD 3.8 Service commands within the All about FreeBSD/OpenBSD/NetBSD forums, part of the *BSD Operating systems category; I am looking for the proper commands to start, restart and stop services manually. In Redhat you typed "service name ...
|
|||||||
| 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. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I am looking for the proper commands to start, restart and stop services manually. In Redhat you typed "service name stop, start or restart and chose enter.
I have seen several ways to do this on the internet but am not real sure that some are correct. |
| Sponsored Links | ||
|
|
|
||||
|
OpenBSD follows different method to start, stop services. There is no service or /etc/init.d kind of stuff.
OpenBSD uses an rc style startup. /etc/rc.conf file used by rc to know what daemons should start with the system.For example httpd can be automatically started by modifying following line into /etc/rc.conf: Code:
httpd_flags="" Code:
httpd_flags=NO Code:
/bin/kill -HUP `cat /var/run/httpd.pid` /bin/kill -HUP `cat /var/run/crond.pid` /bin/kill -HUP `cat /path/to/pid.file` Code:
/bin/kill `cat /var/run/httpd.pid` See example how to install mysql server and update files to start or stop mysql service: OpenBSD Install MySQL Server Here is default rc.conf: http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/etc/rc.conf?content-type=text/plain Read man page rc for more info and FAQ: http://openbsd.org/faq/index.html If you have specific question about services such as smtp or mysql just post it...
__________________
Vivek Gite Linux Evangelist Last edited by nixcraft; 13-09-2008 at 01:57 AM. |
![]() |
| Tags |
| openbsd , openbsd kill service , openbsd start service , openbsd stop service |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| basic commands? | seshaionline | Getting started tutorials | 7 | 24-03-2008 11:30 PM |
| OpenBSD won't let me set offset | php111 | All about FreeBSD/OpenBSD/NetBSD | 0 | 07-09-2007 11:33 PM |
| OpenBSD configure change DNS name server IP address - DNS Client Resolution | rockdalinux | Getting started tutorials | 0 | 15-06-2007 10:14 PM |
| OpenBSD get or display network card IP address Subnet mask information | rockdalinux | Getting started tutorials | 0 | 15-06-2007 10:06 PM |
| Openbsd Howto backup data on tape - tutorial | raj | All about FreeBSD/OpenBSD/NetBSD | 1 | 20-12-2006 01:44 AM |