@@ -24,6 +24,13 @@ pre-start script
2424 # unity-system-compositor's socket.
2525 initctl set-env --global MIR_SOCKET=$MIR_SERVER_FILE
2626 fi
27+
28+ # Remove the socket if still there
29+ if [ -n "$UNITY_MIR_SOCKET" -a -S "$UNITY_MIR_SOCKET" ]; then
30+ rm "$UNITY_MIR_SOCKET"
31+ elif [ -S "$DEFAULT_MIR_SOCKET" ]; then
32+ rm "$DEFAULT_MIR_SOCKET"
33+ fi
2734end script
2835
2936exec ${BINARY:-unity8} $ARGS