spotify-connect-web icon indicating copy to clipboard operation
spotify-connect-web copied to clipboard

Multiple mounts when restarting service

Open keab opened this issue 8 years ago • 1 comments

I have installed spotify-connect-web on an RPI1 with OSMC. If I stop and restart the service using systemctl I noticed that I get duplicate mounts of /proc and /dev. Not pretty. My solution was to modify spotify-connect-web.sh and replace sudo mount --bind /dev $DIR/dev sudo mount -t proc proc $DIR/proc/ with if ! mount | grep -q "$DIR/proc" ; then sudo mount -t proc proc $DIR/proc/; fi if ! mount | grep -q "$DIR/dev" ; then sudo mount --bind /dev $DIR/dev;fi

I don't know if this is the best solution but I suggest that some solution should be implemented.

keab avatar Feb 05 '17 16:02 keab

I'll see about adding some checks for existing mounts

Fornoth avatar Jan 15 '18 17:01 Fornoth