Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2008 12:11:25 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        "lokesh babu" <loc.hello@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: problem while stoping a service using script
Message-ID:  <44abm7zade.fsf@be-well.ilk.org>
In-Reply-To: <7d4569950802110156t2b59e568y2dda415fa18776d6@mail.gmail.com> (lokesh babu's message of "Mon\, 11 Feb 2008 15\:26\:00 %2B0530")
References:  <7d4569950802110156t2b59e568y2dda415fa18776d6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"lokesh babu" <loc.hello@gmail.com> 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".



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44abm7zade.fsf>