Need to run a Command Once on Boot. FreeBSD8.1

Odhiambo Washington 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
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
>



-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"If you have nothing good to say about someone, just shut up!."
               -- Lucky Dube


More information about the freebsd-questions mailing list