From 21d1a6ac18a2a7a9e6ead754d261eb2cbc89ca10 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 25 Oct 2021 10:27:21 -0700 Subject: doc: update README with instruction for installing --- tools/mpd-stats/README.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/mpd-stats/README.org b/tools/mpd-stats/README.org index 8765e59..8c0a7d9 100644 --- a/tools/mpd-stats/README.org +++ b/tools/mpd-stats/README.org @@ -12,3 +12,11 @@ Collect logs from mpd. A log record is composed of the following fields: - date: date the song was played The logs are recorded in a database (sqlite3 to start). +* Install +The Makefile assumes the system is running Linux and systemd. + +Run =make install=. This will: +- install the binary in your =GOPATH= (using =go install=) +- install a systemd unit file under =$HOME/.config/systemd/user= +- reload systemd unit files +- start the service -- cgit 1.4.1