Closed parkmino closed 4 years ago
Since myMPD 5.6.0 there are some commandline options. I think you want mympd reset_state
.
# mympd help
INFO Starting myMPD 5.7.0
INFO Libmpdclient 2.17.0
INFO Mongoose 6.16
INFO Parsing config file: /etc/mympd.conf
INFO Setting loglevel to INFO
INFO Localstate dir: "/var/lib/mympd"
myMPD 5.7.0
Copyright (C) 2018-2019 Juergen Mang <mail@jcgames.de>
https://github.com/jcorporation/myMPD
Usage: mympd [/etc/mympd.conf] <command>
Commands (you should stop mympd before):
certs_create: create ssl certificates
cert_remove: remove server certificates
ca_remove: remove ca certificates
reset_state: delete all myMPD settings
reset_smartpls: create default smart playlists
reset_lastplayed: truncates last played list
clear_covercache: empties the covercache directory
I created a wiki page for reference: https://github.com/jcorporation/myMPD/wiki/Commandline-Options
OK, then I will use this option. I tried 'mympd --help' and it did not show any thing without 'sudo'. I think that help message should show all options without 'sudo'. Help option itself is not listed in 'mympd help'.
5.7.0 shows the help and lists the help option itself.
It would be good to have the option to initialize /var/lib/mympd directory. I run it manually once in a while.