MPD_HOST=localhost
MPD_PORT=6600
WEB_PORT=8080
+#DIGEST=--digest /path/to/htdigest
# Exit if the package is not installed
# 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 --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT $DIGEST"
do_start()
{
MPD_PORT=6600
WEB_PORT=8080
YMPD_USER=nobody
+#DIGEST=--digest /path/to/htdigest
Environment=MPD_PORT=6600
Environment=WEB_PORT=8080
Environment=YMPD_USER=nobody
+Environment=DIGEST=
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 --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT $DIGEST
Type=simple
[Install]