From owner-freebsd-questions@FreeBSD.ORG Tue Apr 22 20:35:20 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 D825F1065675 for ; Tue, 22 Apr 2008 20:35:20 +0000 (UTC) (envelope-from gerard@seibercom.net) Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.246]) by mx1.freebsd.org (Postfix) with ESMTP id 86BB88FC29 for ; Tue, 22 Apr 2008 20:35:20 +0000 (UTC) (envelope-from gerard@seibercom.net) Received: by hs-out-0708.google.com with SMTP id m63so1508093hsc.11 for ; Tue, 22 Apr 2008 13:35:19 -0700 (PDT) Received: by 10.90.120.14 with SMTP id s14mr794085agc.20.1208896519590; Tue, 22 Apr 2008 13:35:19 -0700 (PDT) Received: from scorpio ( [67.189.233.182]) by mx.google.com with ESMTPS id 7sm7843034agb.12.2008.04.22.13.35.14 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 Apr 2008 13:35:18 -0700 (PDT) Date: Tue, 22 Apr 2008 16:34:56 -0400 From: Gerard To: freebsd-questions@freebsd.org Message-ID: <20080422163456.285ad902@scorpio> In-Reply-To: <20080422111826.GA26749@ozzmosis.com> References: <36b22dcf9403783aa82cb84ac8a886aa@localhost> <20080422111826.GA26749@ozzmosis.com> Organization: seibercom.net X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; i386-portbld-freebsd6.3) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+/v7++v6YOTrq8PCcuIX989UvOSj++v0BNCbpAAAAB3RJTUUHsQwfFzs7RBhzUQAAAhJJREFUOI1dU8GOqzAMNKIoV1bvwD1i0ysqrHplIdBrVSX7ATSbd03VVvn9tQNtQy0hjAdn7LED4AAcPtWm9RV+MPSfxhBLx9ajd6X/ngB6/mTwnRSZua7i7Ca+0ctZKo4Qmz+JY13X6I3nFZBxIYW1PbgfQ5RP8g0XlltEWGf3cV03joYpRnFbvYDKbXjZlXyyhEZA4lI+cN3NaVXE4VKjSwTExO10eTEkkJVqIAD5z0nUBQJluQDRSQjcrBiHAJxZlAH5CUMBMC7OcJ4LMQNnxhZ1HYPscMc6J4UlWRMNwzOpCcAHKSICd1EDn83abdREIbXsHkD1OinP1aCUCOEVRaa1lMcvywUWdYgk13JQUpYNKmvXQ8Kw5ML9YI5h8SakctBc7E/IYuLhYd/zZIk+1gM1vNweQBvHE0j+oYah3sMqAytQYlZk6+ANaaawJdu3OFzYGMZ3iGpa3qMlq9ZH0VZTgrCtw/ngdYkEIIpSbP1bWQAdFdX9vocBdkH2qVjVmuMu3gI5rjs814EUdrCZgWlPaxZZ3RiLFUtr+ud0PXwp2dnQSNXgePt6AZpBj6UMJ7VQkzN4utVeaSW1Dhn/kblGrKeMvNGnzwX4zuEDarYz1KdPtR60Gul0Gued+515SJXhCsl+Tx/3kY/UDvicPll9mfu50t3tvQ/thZpJYgeuwdSKNJ6tCD98MCgoxLDaPxbwqqwPWaWiAAAAAElFTkSuQmCC X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR nSNPNr*/^~StawWU9KDJ-CT0k$f#@t2^K&BS_f|?ZV/.7Q X-Operating-System: FreeBSD-6.3 Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/Y533hPowrlxjVJQ5UJVzS=w"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Subject: Re: Crontab @reboot directive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2008 20:35:20 -0000 --Sig_/Y533hPowrlxjVJQ5UJVzS=w Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 22 Apr 2008 21:18:26 +1000 andrew clarke wrote: > On Tue 2008-04-22 12:34:12 UTC+0200, Zbigniew Szalbot > (zszalbot@gmail.com) wrote: >=20 > > 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? > >=20 > > @reboot /path/to/file.sh >=20 > Yes. This is how I start fetchmail after a reboot: >=20 > @reboot /usr/local/bin/fetchmail -d 120 Is there a specific reason that you choose to do that rather than starting it by adding: fetchmail_enable=3D"YES" to the /etc/rc.conf file? --=20 Gerard gerard@seibercom.net The solution of problems is the most characteristic and peculiar sort of voluntary thinking. William James --Sig_/Y533hPowrlxjVJQ5UJVzS=w Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkgOS/AACgkQ6DWTaTcTwMkbcgCeOPP+rbhL+FaZUZA7opI5d5cV RCkAoISH4yEpvN+MOo4XNjnomIJVRQjI =fasp -----END PGP SIGNATURE----- --Sig_/Y533hPowrlxjVJQ5UJVzS=w--