Date: Tue, 22 Apr 2008 16:34:56 -0400 From: Gerard <gerard@seibercom.net> To: freebsd-questions@freebsd.org Subject: Re: Crontab @reboot directive Message-ID: <20080422163456.285ad902@scorpio> In-Reply-To: <20080422111826.GA26749@ozzmosis.com> References: <36b22dcf9403783aa82cb84ac8a886aa@localhost> <20080422111826.GA26749@ozzmosis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <mail@ozzmosis.com> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080422163456.285ad902>