Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple mounts when restarting service #119

Open
keab opened this issue Feb 5, 2017 · 1 comment
Open

Multiple mounts when restarting service #119

keab opened this issue Feb 5, 2017 · 1 comment

Comments

@keab
Copy link

keab commented Feb 5, 2017

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
Copy link
Owner

Fornoth commented Jan 15, 2018

I'll see about adding some checks for existing mounts

@Fornoth Fornoth mentioned this issue Jan 15, 2018
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants