Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Apr 2008 21:18:26 +1000
From:      andrew clarke <mail@ozzmosis.com>
To:        Zbigniew Szalbot <zszalbot@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Crontab @reboot directive
Message-ID:  <20080422111826.GA26749@ozzmosis.com>
In-Reply-To: <36b22dcf9403783aa82cb84ac8a886aa@localhost>
References:  <36b22dcf9403783aa82cb84ac8a886aa@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue 2008-04-22 12:34:12 UTC+0200, Zbigniew Szalbot (zszalbot@gmail.com) wrote:

> If I want to start a program at every system reboot and the program should
> not be started by root, is it enough for me to edit a users crontab with
> the following directive?
> 
> @reboot /path/to/file.sh

Yes.  This is how I start fetchmail after a reboot:

@reboot /usr/local/bin/fetchmail -d 120



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