From: unknownln Date: Sat, 18 Feb 2017 17:00:28 +0000 (-0500) Subject: config for system services X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=ec74ef463ba5a617d1e2f9fd08c823f93a536408;p=ympd.git config for system services --- 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]