[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debhelper and dh_installcron: why make them executables?



On Wed, Dec 09, 1998 at 10:19:01AM +0100, Stephane Bortzmeyer wrote:
> 
> Whose fault is it? dh_installcron? (It just calls install without the -m 
> option.) Mine?

All scripts in the /etc/cron.{daily,weekly,monthly} directories are
supposed to be executable. These are supposed to be shell scripts, that
execute a command at the defined interval as specified by the directory
you put it into. If you your cron file is nothing more than a regular
crontab entry in the form of "5 * * * * user /usr/bin/command" then it
needs to go in /etc/cron.d/ which is where packages can have custom
crontabs. 

NOTE: /etc/cron.d is not normal crontab style. Notice the extra field
'user' which tells cron which user to run the command as.

-- 
-----    -- - -------- --------- ----  -------  -----  - - ---   --------
Ben Collins <b.m.collins@larc.nasa.gov>                  Debian GNU/Linux
UnixGroup Admin - Jordan Systems Inc.                 bcollins@debian.org
------ -- ----- - - -------   ------- -- The Choice of the GNU Generation


Reply to: