Tiny Core Extensions > TCE Talk
MPD - time for an update?
SamK:
--- Quote from: TaoTePuh on September 03, 2010, 08:26:45 AM ---Any special demands?
--- End quote ---
Not a demand but a request.
It will be helpful if mpd.conf is placed in a editable location rather than the default of /etc. This will negate the current requirement to stop the running instance and restart it pointing to an editable mpd.conf.
An example of how I currently do this is given earlier in this thread - see post 2.
TaoTePuh:
I believe that it is good to keep the mpd.conf in its usual place. Otherwise, experienced users would get problems because they presuppose the file at that location.
But since I do not intend to start mpd automatically, you can specify a different location while starting: "/usr/local/bin/mpd /opt/mpd.conf".
Juanito:
The other option is to compile such that mpd.conf ends up in /usr/local/etc and then:
1. move the default mpd.conf to somewhere like /usr/local/share/mpd/files/mpd.conf
2. create a start-up script in /usr/local/tce.installed that checks for the presence of /usr/local/etc/mpd.conf and copies /usr/local/share/mpd/files/mpd.conf to /usr/local/etc if it doesn't already exist
This way a modified mpd.conf can be kept in a backup and will not be over-written when the extension is loaded again
TaoTePuh:
Thanks for the idea but there is no "default mpd.conf" in my extension. The settings are too individual.
There is only a "example conf" in /usr/local/share/doc/mpd/mpdconf.example but this will never work without manual adjustment.
I would like to place the following hint in the info file for the Appbrowser:
CONFIGURATION
-------------
Copy example configuration
tce-load -i mpd-0.15.12-doc
sudo cp /usr/local/share/doc/mpd/mpdconf.example /etc/mpd.conf
Modify (with sudo) /etc/mpd.conf according to your requirements
Put mpd.conf in your backup if /etc is not persistent
echo "etc/mpd.conf" >> /opt/.filetool.lst
START mpd
---------
sudo /usr/local/bin/mpd /etc/mpd.conf
STOP mpd
--------
sudo killall mpd
b1ackmai1er:
I have compiled and submitted the latest alpha version which supports the mpd.conf file in /opt/.mpd
Have been having trouble getting it submitted to the tiny core extensions repository.
If you want to try the package, please PM me with your email and I will send through.
regards b1ackmai1er
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version