Subject: Re: Automatically starting programs...
To: Andy Ball <>
From: Jukka Marin <>
List: netbsd-users
Date: 08/12/2002 08:22:59
On Sun, Aug 11, 2002 at 11:27:03PM -0400, Andy Ball wrote:
> I think I'm in with a chance for "dumb question of the week award",
> but it's something I've wondered about for a while and never
> spotted in the docs I've read.  Where would I put a command line
> that I wanted to run every time a NetBSD host is restarted?  (My
> webserver has no UPS and is 150 miles away ;-)

If I want to run something as root, I put it in /etc/rc.local.  If I
want to run something as a user, I put it in the user's crontab (and
specify the time as "@reboot", see man 5 crontab).