Need to run a Command Once on Boot. FreeBSD8.1
odhiambo at gmail.com
Sat Sep 4 10:32:26 UTC 2010
On Fri, Sep 3, 2010 at 11:00 PM, Jason <jhelfman at e-e.com> wrote:
> On Fri, Sep 03, 2010 at 02:50:48PM -0500, Martin McCormick thus spake:
> Robert Bonomi writes:
>>> /etc/rc.local maybe? contrary to the 'rc.d' way of doing things, but
>>> 'simple'. :)
>> Thanks so much to both people who answered. I thought
>> there was more to it than that but I may be thinking of the
>> rcx.d directories in Linux. If you don't watch out, you can be
>> scratching your head all day trying to figure out why the job
>> isn't getting done. I use and like both FreeBSD and Linux but
>> some things are easier in one than the other.
>> Again, many thanks.
> man 5 crontab has:
> @reboot Run once, at startup
But this will always run every reboot, no?
I think there used to be something along the lines of rc.early which could
do what he wants. Then you can schedule a task to delete rc.early once it's
served it's purpose:)
>> Martin McCormick WB5AGZ Stillwater, OK
>> Systems Engineer
>> OSU Information Technology Department Telecommunications Services Group
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"If you have nothing good to say about someone, just shut up!."
-- Lucky Dube
More information about the freebsd-questions