problem while stoping a service using script

Lowell Gilbert freebsd-questions-local at
Mon Feb 11 17:11:27 UTC 2008

"lokesh babu" <loc.hello at> writes:

> i want to know how to stop a service from a script
> this is the sample script to stop and start a service in linux,when i kept
> faststart then starting a service is working in freebsd similarly i want to
> know what to do inorder to stop a service in freebsd.
> start|--start | faststart)
>         do_start
>         ;;
>     stop|--stop)
>         do_stop

The easy way to do this is to fit it into FreeBSD's rc.d system, which
is slightly different in detail than the way Linux does such things.

You might want to start with "man rc.d".

More information about the freebsd-questions mailing list