Package: mlocate
Version: 0.26-2
Followup-For: Bug #882993
Dear Maintainer,
good morning, I created a systemd drive for debian 9, start and update mlocate
sudo nano /lib/systemd/system/mlocate.service
[Unit]
Description= quickly find files on the filesystem based on their name
After=syslog.target
[Service]
ExecStart=/bin/bash -c "flock --nonblock /run/mlocate.daily.lock $NOCACHE
$IONICE /usr/bin/updatedb.mlocate"
Restart=always
KillSignal=SIGQUIT
Type=notify
StandardError=syslog
NotifyAccess=all
[Install]
WantedBy=multi-user.target
sudo systemctl enable mlocate.service
sudo systemctl start mlocate.service
test:
sudo systemctl status mlocate.service
● mlocate.service - quickly find files on the filesystem based on their name
Loaded: loaded (/lib/systemd/system/mlocate.service; enabled; vendor preset:
enabled)
Active: active (running) since Thu 2018-12-20 00:12:21 CET; 3s ago
Main PID: 12847 (flock)
Tasks: 2 (limit: 4915)
Memory: 56.1M
CPU: 1.512s
CGroup: /system.slice/mlocate.service
├─12847 flock --nonblock /run/mlocate.daily.lock
/usr/bin/updatedb.mlocate
└─12848 /usr/bin/updatedb.mlocate
dic 20 00:12:21 MiAir systemd[1]: Started quickly find files on the filesystem
based on their name.
-- System Information:
Debian Release: 9.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8),
LANGUAGE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages mlocate depends on:
ii adduser 3.115
ii libc6 2.24-11+deb9u3
mlocate recommends no packages.
mlocate suggests no packages.
-- no debconf information