]> Untitled Git - ympd.git/commitdiff
config for system services
authorunknownln <unknownloner.online@gmail.com>
Sat, 18 Feb 2017 17:00:28 +0000 (12:00 -0500)
committerunknownln <unknownloner.online@gmail.com>
Sat, 18 Feb 2017 17:00:28 +0000 (12:00 -0500)
contrib/init.debian
contrib/ympd.default
contrib/ympd.service

index 5c10bdf606fb02b24cf480d6d97ae169fdda15bc..405739c3f3866b4cd035f99d969d5caa6a751a92 100755 (executable)
@@ -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()
 {
index c7bbcdaa71ca34497cff41699e86db55baddb84c..e5e7c74a0b6d402ef901c8861ac0c729ad37f8dd 100644 (file)
@@ -1,4 +1,5 @@
 MPD_HOST=localhost
 MPD_PORT=6600
+MPD_PASSWORD=
 WEB_PORT=8080
 YMPD_USER=nobody
index 2289550f86e1448b578880805e250622f699d4b5..d4d2ae2e1c5708ee702343eeb43956b995acb5cf 100644 (file)
@@ -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]