Fornoth / spotify-connect-web

MIT License
436 stars 66 forks source link

Multiple mounts when restarting service #119

Open keab opened 7 years ago

keab commented 7 years ago

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.

Fornoth commented 6 years ago

I'll see about adding some checks for existing mounts