From owner-freebsd-questions@FreeBSD.ORG Tue Apr 22 11:18:35 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A23FD1065678 for ; Tue, 22 Apr 2008 11:18:35 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from smtp.mel.people.net.au (smtp.mel.people.net.au [218.214.17.98]) by mx1.freebsd.org (Postfix) with SMTP id B65398FC1B for ; Tue, 22 Apr 2008 11:18:34 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: (qmail 30341 invoked from network); 22 Apr 2008 11:18:32 -0000 Received: from unknown (HELO blizzard.dnsalias.org) (218.215.151.24) by smtp.mel.people.net.au with SMTP; 22 Apr 2008 11:18:32 -0000 Received: by blizzard.dnsalias.org (Postfix, from userid 1001) id 3380A1705E; Tue, 22 Apr 2008 21:18:26 +1000 (EST) Date: Tue, 22 Apr 2008 21:18:26 +1000 From: andrew clarke To: Zbigniew Szalbot Message-ID: <20080422111826.GA26749@ozzmosis.com> References: <36b22dcf9403783aa82cb84ac8a886aa@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <36b22dcf9403783aa82cb84ac8a886aa@localhost> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-questions@freebsd.org Subject: Re: Crontab @reboot directive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2008 11:18:35 -0000 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