Hi Nick.Moshulu,
i checked the autoupdate on my
latest RP2/3 image and it works like it should.
There are several reasons for your issues:
- permissions
- mpd only checks changes in file date, so retagged files are mostly not detected.
I know what command to use via SSH but I can't create a cron job to implement the command.
Could someone help please?
I would do it the systemd way:
create these two files in /usr/lib/systemd/system
mpd-update-db.timer
- Code: Select all
[Unit]
Description=Run mpd database update every 15 minutes
[Timer]
OnUnitActiveSec=15m
[Install]
WantedBy=timers.target
mpd-update-db.service
- Code: Select all
[Unit]
Description=Run mpd database update every 15 minutes
[Service]
ExecStart=/usr/bin/mpc update
[Install]
WantedBy=multi-user.target
then run this command
- Code: Select all
systemctl enable --now mpd-update-db.timer
with this command you can check the state
- Code: Select all
systemctl list-timers
Frank