Bug#882993: mlocate: please supply a systemd unit for updatedb.mlocate

2020-09-02 Thread Jonathan Dowland

I'm (finally) working on a patch for this.

--
Jonathan Dowland



Bug#882993: mlocate: please supply a systemd unit for updatedb.mlocate

2019-01-08 Thread Luisteam
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  libc62.24-11+deb9u3

mlocate recommends no packages.

mlocate suggests no packages.

-- no debconf information


Bug#882993: mlocate: please supply a systemd unit for updatedb.mlocate

2017-11-28 Thread Jonathan Dowland
Package: mlocate
Version: 0.26-2
Severity: wishlist

Dear Maintainer,

It'd be great if mlocate came with a systemd unit file.

(It seems a lot of the bugs/requests for features for the mlocate package are
requests/bugs in the cron job script rather than mlocate itself -- and things
like splay, ionice, nice, etc. that systemd would resolve)

-- System Information:
Debian Release: 9.0
  APT prefers stable
  APT policy: (900, 'stable'), (700, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (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  libc62.24-11

mlocate recommends no packages.

mlocate suggests no packages.

-- Configuration Files:
/etc/cron.daily/mlocate [Errno 2] No such file or directory: 
'/etc/cron.daily/mlocate'

-- no debconf information