Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #234826

Re: Ghost cronjob

From Mart van de Wege <mart@vdwege.eu>
Newsgroups linux.debian.user
Subject Re: Ghost cronjob
Date 2021-05-04 20:00 +0200
Message-ID <Cb7uW-5fN-7@gated-at.bofh.it> (permalink)
References (4 earlier) <CaMTw-1hV-7@gated-at.bofh.it> <CaX2y-7vR-1@gated-at.bofh.it> <Cb3AZ-2XC-1@gated-at.bofh.it> <Cb4Qq-3Tj-7@gated-at.bofh.it> <Cb5Mt-4r9-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


David Wright <deblis@lionunicorn.co.uk> writes:

> On Tue 04 May 2021 at 17:06:50 (+0200), Mart van de Wege wrote:
>> Sven Hartge writes:
>> > Mart van de Wege wrote:
>> >
>> >> Nope, not ephemeral at all, it's PID 1. Since I don't have timers
>> >> running this job, apparently there's a zombie process somewhere?
>> >
>> > PID 1 hints at a systemd.timer, even if you have dismissed this
>> > previously. Also the start time of just after midnight hints at this.
>> >
>> > And when I look at the current btrbk package in Sid/Testing I do indeed
>> > see it ships a timer in /usr/lib/systtemd/
>> >
>> > So, there is your answer then.
>> 
>> Well whaddayaknow. I hadn't checked the system timers under
>> /usr/lib/systemd/
>> 
>> And that is the bastard running the ghost job.
>> 
>> Surely packaging a system timer file like that should not be done? It
>> should be at the discretion of the admin to create one if they want to
>> run btrbk on a schedule.
>
> I think this has been discussed in the past, and that installing a
> package is generally seen as meaning that you want it to run: Debian
> therefore tries to supply a reasonable and secure configuration.
>
But that's not applicable in this case. btrbk can be run standalone or
from a cronjob/timer, but the exact time someone wants to run their
backups, or even if they want them run periodically at all, is not a
decision you can make for them.

Of course an argument can be made that without edits to the default
btrbk.conf file btrbk won't run anyway, so configuring the timer is part
of configuring your backup strategy. I still think that supplying a
system timer is wrong here.

> But I can't help wondering what was the result of both systemd *and*
> your cron job running btrbk at the same time. Do you have backups of
> the logs?
>
I have backups. What happened is that for about 1.5 months I ran double
backups. Thankfully these are incremental snapshots, so not much
diskspace is lost on my server.

Regards,

Mart
-- 
"We will need a longer wall when the revolution comes."
--- AJS, quoting an uncertain source.

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Ghost cronjob Mart van de Wege <mart@vdwege.eu> - 2021-05-03 09:10 +0200
  Re: Ghost cronjob <tomas@tuxteam.de> - 2021-05-03 09:20 +0200
    Re: Ghost cronjob Mart van de Wege <mart@vdwege.eu> - 2021-05-03 10:00 +0200
      Re: Ghost cronjob <tomas@tuxteam.de> - 2021-05-03 11:30 +0200
        Re: Ghost cronjob Mart van de Wege <mart@vdwege.eu> - 2021-05-03 12:10 +0200
  Re: Ghost cronjob Mart van de Wege <mart@vdwege.eu> - 2021-05-03 09:20 +0200
  Re: Ghost cronjob David Wright <deblis@lionunicorn.co.uk> - 2021-05-03 16:50 +0200
    Re: Ghost cronjob Mart van de Wege <mart@vdwege.eu> - 2021-05-03 18:40 +0200
  Re: Ghost cronjob Stefan Monnier <monnier@iro.umontreal.ca> - 2021-05-03 18:50 +0200
    Re: Ghost cronjob Mart van de Wege <mart@vdwege.eu> - 2021-05-03 20:20 +0200
      Re: Ghost cronjob Stefan Monnier <monnier@iro.umontreal.ca> - 2021-05-03 20:40 +0200
        Re: Ghost cronjob <tomas@tuxteam.de> - 2021-05-03 21:40 +0200
        Re: Ghost cronjob Mart van de Wege <mart@vdwege.eu> - 2021-05-03 22:00 +0200
          Re: Ghost cronjob Mart van de Wege <mart@vdwege.eu> - 2021-05-04 08:50 +0200
            Re: Ghost cronjob Sven Hartge <sven@svenhartge.de> - 2021-05-04 15:50 +0200
              Re: Ghost cronjob Mart van de Wege <mart@vdwege.eu> - 2021-05-04 17:10 +0200
                Re: Ghost cronjob David Wright <deblis@lionunicorn.co.uk> - 2021-05-04 18:10 +0200
                Re: Ghost cronjob Mart van de Wege <mart@vdwege.eu> - 2021-05-04 20:00 +0200
                Re: Ghost cronjob Andrei POPESCU <andreimpopescu@gmail.com> - 2021-05-04 21:30 +0200
                Re: Ghost cronjob David Wright <deblis@lionunicorn.co.uk> - 2021-05-05 04:50 +0200
                Re: Ghost cronjob l0f4r0@tuta.io - 2021-05-08 10:20 +0200
                Re: Ghost cronjob Andrei POPESCU <andreimpopescu@gmail.com> - 2021-05-08 12:00 +0200

csiph-web