Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Feb 2008 17:45:16 +0000
From:      RW <fbsd06@mlists.homeunix.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: script to be executed on system startup.
Message-ID:  <20080209174516.7f82a967@gumby.homeunix.com.>
In-Reply-To: <1563a4fd0802070549r71731883t9d606a2e62f67d4d@mail.gmail.com>
References:  <1563a4fd0802060609j59451879h3920be790d7667c0@mail.gmail.com> <47A9FB98.4020907@bsdforen.de> <1563a4fd0802070549r71731883t9d606a2e62f67d4d@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 7 Feb 2008 19:19:48 +0530
"navneet Upadhyay" <navneet.upadhyay@gmail.com> wrote:

> Hi,
>       After putting my script to /etc/rc.d , it gets executed at
> startup and the parameter passed to the script is *faststart .*
> *I want the same script to be executed when system shuts down , how
> can i do that.*

Don't put it in /etc/rc.d/, give it a .sh extension and put it
in /usr/local/etc/rc.d/. It will then get stop/start arguments.




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