From ec74ef463ba5a617d1e2f9fd08c823f93a536408 Mon Sep 17 00:00:00 2001 From: unknownln Date: Sat, 18 Feb 2017 12:00:28 -0500 Subject: [PATCH] config for system services --- contrib/init.debian | 2 +- contrib/ympd.default | 1 + contrib/ympd.service | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/init.debian b/contrib/init.debian index 5c10bdf..405739c 100755 --- a/contrib/init.debian +++ b/contrib/init.debian @@ -35,7 +35,7 @@ WEB_PORT=8080 # Load the VERBOSE setting and other rcS variables [ -f /etc/default/rcS ] && . /etc/default/rcS -DAEMON_OPT="--user $YMPD_USER --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT" +DAEMON_OPT="--user $YMPD_USER --mpdpass $MPD_PASSWORD --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT" do_start() { diff --git a/contrib/ympd.default b/contrib/ympd.default index c7bbcda..e5e7c74 100644 --- a/contrib/ympd.default +++ b/contrib/ympd.default @@ -1,4 +1,5 @@ MPD_HOST=localhost MPD_PORT=6600 +MPD_PASSWORD= WEB_PORT=8080 YMPD_USER=nobody diff --git a/contrib/ympd.service b/contrib/ympd.service index 2289550..d4d2ae2 100644 --- a/contrib/ympd.service +++ b/contrib/ympd.service @@ -5,10 +5,11 @@ Requires=network.target local-fs.target [Service] Environment=MPD_HOST=localhost Environment=MPD_PORT=6600 +Environment=MPD_PASSWORD= Environment=WEB_PORT=8080 Environment=YMPD_USER=nobody EnvironmentFile=/etc/default/ympd -ExecStart=/usr/bin/ympd --user $YMPD_USER --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT +ExecStart=/usr/bin/ympd --user $YMPD_USER --mpdpass $MPD_PASSWORD --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT Type=simple [Install] -- 2.20.1