You are not logged in.
Updatedb may bring your system down when your (USB thumb) drive goes berserk, especially when having FAT lookup loops (in the UEFI boot partition).
That is one of the reasons why I want to disable the updatedb.timer and keep it disabled over OS and systemd upgrades.
Lone_Wolf suggests an option at https://bbs.archlinux.org/viewtopic.php … 6#p1549346 to "Write your own updatedb.service file WITH the needed section to use enable/disable." with the disadvantage that upstream might change the service file.
--
I tend to write overrides in newly created folders like /etc/systemd/updatedb.conf.d/, is that a good location for my purpose?
What do I write, as that needed section, in the override.conf file to be able to disable (and keep it disabled) and why?
# cat /usr/lib/systemd/system/updatedb.service
[Unit]
Description=Update locate database
[Service]
Type=oneshot
ExecStart=/usr/bin/updatedb
IOSchedulingClass=idleWhat to do to permanently disable the updatedb.timer as well?
Offline
Mask a unit to make it impossible to start it (both manually and as a dependency, which makes masking dangerous):
# systemctl mask unit
"the wind-blown way, wanna win? don't play"
Offline
Mask seems to only help until there is a systemd upgrade. I prefer something more permanent.
Though I wish to prevent
pacman -Rs mlocateto remove locate completely.
Last edited by probackup-nl (2019-12-31 15:06:54)
Offline
Mask seems to only help until there is a systemd upgrade.
Where did you get this idea? Masking should be permanent until you unmask it.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Where did you get this idea?
The same post from Lone_Wolf (as linked in my original message), states:
Masking such a service is intended to be temporarily only, and it will be unmasked on next upgrade of systemd.
Offline
I see no basis for that claim at all. It is not temporary, and it will not be undone by updates. Masking litterally just creates a symlink to /dev/null under /etc/systemd for the masked service. Package upgrades should never modify any service file under /etc/systemd.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
That claim was valid in the past for archlinux systemd package, it reset all things in /etc/systemd to default values upon update.
This was not considered a bug, but a feature.
I can't find when that was (bugtracker and forum have way to may threads/bug reports that include systemd and mask to check them), and there's no sign it still is that way.
I'll edit the other thread.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline