Date: Fri, 28 Jan 2005 17:58:55 -0600 From: Paul Schmehl <pauls@utdallas.edu> To: Xian <ian@codepad.net>, freebsd-questions@freebsd.org Subject: Re: custom periodic scripts Message-ID: <9E6B95073433E88321774B74@utd49554.utdallas.edu> In-Reply-To: <200501282232.35750.ian@codepad.net> References: <200501282232.35750.ian@codepad.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--On Friday, January 28, 2005 10:32:35 PM +0000 Xian <ian@codepad.net> wrote: > How would I go about adding scripts to periodic? I particular I have a > couple of scripts to fetch virus definitions and scan my system. > I gathered the is a 'proper' way to do it by using > /usr/local/etc/periodic but not how to do it. Write the script. Put it in /etc/periodic/{period you want} Name it xxx.name (as in some number that isn't already used. Scripts are run in numerical order.) Make it executable for root. Edit the /etc/periodic.conf file to enable it. See the man page for details, but the syntax is period_scriptname_enable="YES" For example, write a script name "foo". Make it 250.foo and put it in /etc/periodic/daily. Chown it root:wheel and chmod it 750. Edit /etc/periodic.conf to read daily_foo_enable="YES". Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer The University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9E6B95073433E88321774B74>