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

Re: simple cron packaging question



On 2004-08-05 Brian Sutherland <jinty@web.de> wrote:
> As my first foray into debian packaging, I want to create a
> package that installs a cron job to be run daily.

> My approach is to install a simple script into /etc/cron.daily/
> that calls a more complex script which I install into /usr/bin/.

> Will this be compliant with the FHS?

Why not?

> Make sure that if the package is uninstalled, the cron job is
> disabled?

You have to take care of that yourself, e.g. by starting
/etc/cron.daily/script with
if ! test -x /usr/bin/complexscript ; then
   exit 0
fi

           cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"



Reply to: