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

Re: Ghost cronjob



On Sb, 08 mai 21, 10:12:59, l0f4r0@tuta.io wrote:
> Hi,
> 
> 5 mai 2021, 04:48 de deblis@lionunicorn.co.uk:
> 
> > After all, it's easy to override it with
> >
> >  # ln -s /dev/null /etc/systemd/system/btrbk.service
> >
> You may need the `-f` (force) switch if btrbk.service file already exists.

While this is technically true, package provided service files are (or 
at least should be) in /usr/lib/systemd/{system|user}/ only.

The .service files in /etc are there only because the admin put them 
there, either to 1) provide a .service file for a service that doesn't 
provide its own or 2) to override the /usr/lib version.

In both cases 'ln -sf' would lead to data loss.

For 1), just move the file out of the way or rename it to something that 
doesn't end in .service. For 2) move the file out of the way and *then* 
create the symlink to /dev/null [1], no '-f' needed.

[1] or just use 'systemctl mask <service>', which does the same.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

Attachment: signature.asc
Description: PGP signature


Reply to: