Re: logwatch at midnight?

2019-09-15 Thread Sharon Kimble
Dan Ritter  writes:

> Sharon Kimble wrote: 
>> 
>> How can I configure logwatch to only fire off at midnight, instead of
>> its current 0738, please?
>
> If I recall correctly, logwatch is run via cron.daily, which
> means anacron does it as part of its own routine.
>
> anacron is fired off via /etc/crontab.
>
> You have two choices:
>
> 1. edit the whole daily anacron job in /etc/crontab, which will
> affect lots of jobs
>
> or
>
> 2. move the logwatch job out of /etc/cron.daily to /etc/cron.d, then
> reformat it to be a proper cron job (give it a specific time to
> run in crontab format)
>
> -dsr-

Thanks for this Dan, and also Charles.

I took the path of least problems and used option 2. I already had a
logwatch job working in roots crontab, so now I'm just getting the
midnight logwatch, which is what I wanted.

Thanks very much both.
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 10.1, fluxbox 1.3.7, emacs 26.3, org 9.2.6


signature.asc
Description: PGP signature


Re: logwatch at midnight?

2019-09-09 Thread David
On Tue, 10 Sep 2019 at 00:09, Jonas Smedegaard  wrote:
>
> Yeah, the good old days when the system could fit on a floppy, and USB
> wasn't invented.  Blissful times.

Agreed, see [1].

[1] https://en.wikipedia.org/wiki/USB_hardware#Connector_types



Re: logwatch at midnight?

2019-09-09 Thread Jonas Smedegaard
Quoting ghe (2019-09-09 16:02:27)
> On 9/9/19 5:47 AM, Charles Curley wrote:
> 
> > Kudzuesque systemd appears to be taking over everything
> 
> Remember the good old days when a *nix program did one thing and did 
> it well?

Yeah, the good old days when the system could fit on a floppy, and USB 
wasn't invented.  Blissful times.

 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private


signature.asc
Description: signature


Re: logwatch at midnight?

2019-09-09 Thread ghe
On 9/9/19 5:47 AM, Charles Curley wrote:

> Kudzuesque systemd appears to be taking over everything

Remember the good old days when a *nix program did one thing and did it
well?

-- 
Glenn English



Re: logwatch at midnight?

2019-09-09 Thread Charles Curley
On Mon, 09 Sep 2019 10:01:56 +0100
Sharon Kimble  wrote:

> How can I configure logwatch to only fire off at midnight, instead of
> its current 0738, please?

Kudzuesque systemd appears to be taking over everything

I want logwatch and other things to run at 04:30 or so, so here's what
I do as I install/upgrade to Debian 10 (buster):

* cp -rp /lib/systemd/system/anacron.timer /etc/systemd/system

* edit the "OnCalendar" line of /etc/systemd/system/anacron.timer to
  suit:

  sed -i.old -e's/07/04/' /etc/systemd/system/anacron.timer

* run "systemctl daemon-reload" to force reloading everything.

I expect you can adapt the sed edit to your own situation.

As Dan Ritter  noted, this will affect every
anacron daily job. That's fine by me, you may prefer his other solution.

-- 
"When we talk of civilization, we are too apt to limit the meaning of
the word to its mere embellishments, such as arts and sciences; but
the true distinction between it and barbarism is, that the one
presents a state of society under the protection of just and
well-administered law, and the other is left to the chance government
of brute force."
- The Rev. James White, Eighteen Christian Centuries, 1889
Key fingerprint = 38DD CE9F 9725 42DD E29A  EB11 7514 6D37 A332 10CB
https://charlescurley.com



Re: logwatch at midnight?

2019-09-09 Thread Dan Ritter
Sharon Kimble wrote: 
> 
> How can I configure logwatch to only fire off at midnight, instead of
> its current 0738, please?

If I recall correctly, logwatch is run via cron.daily, which
means anacron does it as part of its own routine.

anacron is fired off via /etc/crontab.

You have two choices:

1. edit the whole daily anacron job in /etc/crontab, which will
affect lots of jobs

or

2. move the logwatch job out of /etc/cron.daily to /etc/cron.d, then
reformat it to be a proper cron job (give it a specific time to
run in crontab format)

-dsr-



logwatch at midnight?

2019-09-09 Thread Sharon Kimble

How can I configure logwatch to only fire off at midnight, instead of
its current 0738, please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 10.0, fluxbox 1.3.7, emacs 26.3, org 9.2.6


signature.asc
Description: PGP signature